Skip to content

Instantly share code, notes, and snippets.

@camelcaseblog
Created February 27, 2019 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camelcaseblog/3728c5a37e9520bd94c78dbc5bfa9069 to your computer and use it in GitHub Desktop.
Save camelcaseblog/3728c5a37e9520bd94c78dbc5bfa9069 to your computer and use it in GitHub Desktop.
from ngram import NGram
print(NGram.compare('החציל', 'חצילים'))
# 0.15384615384615385
print(NGram.compare('פלפל ובצל ירוק', 'פלפל ירוק ובצל'))
# 0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment