sentence2simvecjs
Version:
Vector-based sentence similarity (0.0-1.0) + embedding export. JavaScript implementation inspired by PINTO0309/sentence2simvec
12 lines • 458 B
TypeScript
export interface UseWorkerBenchmarkResult {
isLoading: boolean;
isModelLoaded: boolean;
error: string | null;
runBenchmark: (text1: string, text2: string, options?: any) => Promise<any>;
runMultipleBenchmarks: (textPairs: Array<{
text1: string;
text2: string;
}>, options?: any) => Promise<any>;
}
export declare function useWorkerBenchmark(): UseWorkerBenchmarkResult;
//# sourceMappingURL=useWorkerBenchmark.d.ts.map