Skip to content

lucasns97/word_ps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORD PS

A module for word similarity evaluation

Author: Lucas Nunes Sequeira

Instalation

Installing the dependency

$ pip install word-ps

Using

Weighted Similarity

This method calculates a number between 0 and 1 to measure how to strings are similar to each other. It uses continuous substring matching weighted by the strings lengths.

Example

from word_ps.word_similarity import weighted_similarity

string1 = "I love banana"
string2 = "I love pinaple"

score = word_similarity(string1, string2)

Updating package

  1. Install twine
    $ pip install twine
  2. Check you are in the root of the project
    ~/.../word_ps$ ls
    dist  LICENCE  pyproject.toml  README.md  requirements.txt  setup.cfg  setup.py  src  tests
  3. Run setup:
    $ python setup.py sdist
  4. Run twine (check if dist/ has only latest package):
    $ twine upload dist/*
  5. Update git:
    $ git add . && git commit -m "update dist files" && git push

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages