ts-tfidf
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ts-tfidf

GitHub license

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)

Dependents (2)

Package Sidebar

Install

npm i ts-tfidf

Weekly Downloads

6

Version

0.0.5

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • tabikaeru