Skip to content

thirdender/jaccard-similarity-sentences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Measuring similarity of sentences

The Jaccard Index itself calculates the similarity/diversity of two sample sets.

This module measure the similarity between senteces, based on the words in common (some of the stop words are excluded).

You can find more information about the algorithm on Wikipedia

Example

Input:

"This is one sentence."

"This is another sentence."

Result: 0.66%

##Pre-installation

This module is build on top of the "Natural" module - library for natural language processing.

You need to run:

npm install natural

** ##Installation

##Usage

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%