From 51d429d332dc05768da9e464205ce696ac753580 Mon Sep 17 00:00:00 2001 From: pavloDeshko Date: Sun, 24 Nov 2024 13:37:50 +0200 Subject: [PATCH] fix(index.d.ts): update some BM25Vectorizer methods types according to implementation --- types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 62ec5e9..2604651 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -348,11 +348,11 @@ declare module 'wink-nlp/utilities/bm25-vectorizer' { } export interface BM25Vectorizer { - learn(tokens: Tokens): void; + learn(tokens: string[]): void; out(f: ItsFunction): T; doc(n: number): Document; - vectorOf(tokens: Tokens): number[]; - bowOf(tokens: Tokens): Bow; + vectorOf(tokens: string[]): number[]; + bowOf(tokens: string[]): Bow; config(): BM25VectorizerConfig; loadModel(json: string): void; }