Skip to content

sean2121/word_similarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

word_similariry

Between two strings comparison based on cosine similarirty.

definition

https://en.wikipedia.org/wiki/Cosine_similarity

usage

CosineSimilarity.new("Tokyo Station", "Tokyo Station", 2).calc
#=> 1.0 It’s obvious!
CosineSimilarity.new("Tokyo Airport", "Tokyo Station", 2).calc
#=> 0.42

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages