0.0.5 • Published 2 years ago

ts-tfidf v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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)