ts-tfidf
v0.0.5
Published
![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
Downloads
5
Maintainers
Readme
ts-tfidf
TypeScript tfidf library.
Usage
import { calculateTfIdf } from 'ts-tfidf'
const texts = ['This is the first document.', 'This document is the second document.', 'And this is the third one.', 'Is this the first document?']
const result = calculateTfIdf({texts: texts})
console.log('result', result)