包详细信息

tf-idf

sachinb9458ISC1.0.0

A simple tf-idf implementation for text documents

tf-idf, tfidf, tf, idf

自述文件

tf-idf

This module returns the rank of each test document in a folder according to the tf-idf algorithm for a particular search term.

Installation

$ npm install tf-idf

Usage

var tfidf = require('tf-idf');

tfidf.getRank('path/to/directory', 'search-term', function (err, docRank) { });

docRank = [{'file':, 'tfidf':}