@trackr/effects-gain
Version:
A subpackage of trackr that contains gain effects.
21 lines (20 loc) • 1.06 kB
TypeScript
import { Normalizer, Score, Configuration, Store } from ".";
export declare type IDict<T> = {
[id: string]: T;
};
export declare class BountyHunter {
private s;
normalizer: Normalizer;
configuration: Configuration;
static LATEST_DOCID: string;
_N: number;
constructor(s: Store, normalizer?: Normalizer, configuration?: Configuration);
feedDoc(key: string, unstructuredDoc: string): Promise<number>;
_feedDocBy(key: string, unstructuredDoc: string, docs_map: IDict<number>, docIds_map: IDict<string>, index: IDict<Array<any>>, tf: IDict<Array<any> | string>, latestDocId: number): Promise<number>;
private removeDocIdFromIndex;
removeDoc(key: string): Promise<void>;
_removeDocBy(key: string, docs_map: IDict<number>, docIds_map: IDict<string>, index: IDict<Array<any>>, tf: IDict<Array<any> | string>, latestDocId: number): Promise<void>;
search(sentence: string): Promise<Score[]>;
_setTfInStore(tf: any, docId: any, word: any): any;
_latestDocId(latestDocId: number): number;
}