From 692444b05c3b3715090487b9beef79775d76fcdf Mon Sep 17 00:00:00 2001 From: Hugo-ter-Doest Date: Thu, 21 Mar 2024 23:42:36 +0100 Subject: [PATCH] Types --- spec/brill_pos_tagger_spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/brill_pos_tagger_spec.ts b/spec/brill_pos_tagger_spec.ts index c1e865ce5..4ff4dacb7 100644 --- a/spec/brill_pos_tagger_spec.ts +++ b/spec/brill_pos_tagger_spec.ts @@ -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>, sentenceInNewFormat: Sentence): boolean { let equal = true sentenceInOldFormat.forEach(function (wordPlusTag: Array, index: number) { equal = equal &&