Skip to content

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-ter-Doest committed Mar 21, 2024
1 parent 73ae3a1 commit 692444b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/brill_pos_tagger_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DEBUG = false
// Compares two tagged sentences. First one is in the old POSJS format, i.e.
// an array of two position arrays. The second one is a Sentence object
// that holds an array of objects for each position {token: "string", tag: "string"}
function compareTaggedSentences (sentenceInOldFormat: [string, string][], sentenceInNewFormat: Sentence): boolean {
function compareTaggedSentences (sentenceInOldFormat: Array<Array<string>>, sentenceInNewFormat: Sentence): boolean {
let equal = true
sentenceInOldFormat.forEach(function (wordPlusTag: Array<string>, index: number) {
equal = equal &&
Expand Down

0 comments on commit 692444b

Please sign in to comment.