Author: Lucas Nunes Sequeira
Installing the dependency
$ pip install word-psWeighted 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)- Install twine
$ pip install twine
- 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 - Run setup:
$ python setup.py sdist
- Run twine (check if
dist/has only latest package):$ twine upload dist/* - Update git:
$ git add . && git commit -m "update dist files" && git push