Page MenuHomeSolus

Initial inclusion of python-textdistance
ClosedPublic

Authored by algent on Feb 24 2021, 5:33 PM.

Details

Summary

A new dependency required by spyder3 version 4.2.2

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan
  • Run a few scripts in spyder.
  • Run these example commands:
>>> import textdistance
>>> textdistance.hamming('test', 'text')
1
>>> textdistance.hamming.distance('test', 'text')
1
>>> textdistance.hamming.similarity('test', 'text')
3
>>> textdistance.hamming.normalized_distance('test', 'text')
0.25
>>> textdistance.hamming.normalized_similarity('test', 'text')
0.75
>>> textdistance.Hamming(qval=2).distance('test', 'text')
2
>>> hamming = textdistance.Hamming(external=False)
>>> hamming('text', 'testit')
3
>>>

Diff Detail

Repository
R5156 python-textdistance
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Feb 24 2021, 5:33 PM
algent requested review of this revision.Feb 24 2021, 5:33 PM
JoshStrobl accepted this revision.Feb 25 2021, 4:01 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Feb 25 2021, 4:01 PM
This revision was automatically updated to reflect the committed changes.