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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    4
    • latest

Version History

Package Sidebar

Install

npm i ts-tfidf

Weekly Downloads

4

Version

0.0.5

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • tabikaeru