Skip to content

Commit

Permalink
fix(index.d.ts): update some BM25Vectorizer methods types according t…
Browse files Browse the repository at this point in the history
…o implementation
  • Loading branch information
pavloDeshko authored and sanjayaksaxena committed Nov 24, 2024
1 parent 819f81f commit 51d429d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ declare module 'wink-nlp/utilities/bm25-vectorizer' {
}

export interface BM25Vectorizer {
learn(tokens: Tokens): void;
learn(tokens: string[]): void;
out<T>(f: ItsFunction<T>): 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;
}
Expand Down

0 comments on commit 51d429d

Please sign in to comment.