Skip to content

sachinB94/tf-idf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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':}

About

A simple tf-idf implementation for text documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors