Text-Similarity
Package for texts similarity, based on textdistance
Usage
- installation
pip install textsimi
- example usage:
from testsimi import textsimilarity as ts
ts.print_all_algorithms()
print(ts.compute_similarity('hello','hi'))
print(ts.top_K_similarity_between_one_mention_and_many_candidates(5,'hi',['hi','hihi','hello',"what's up", 'greetings', 'how are you', 'hallo', 'wie gehts']))
'''
['hamming', 'mlipns', 'levenshtein', 'damerau_levenshtein', 'jaro_winkler', 'strcmp95', 'needleman_wunsch', 'gotoh', 'smith_waterman', 'jaccard', 'sorensen', 'tversky', 'overlap', 'tanimoto', 'cosine', 'monge_elkan', 'bag', 'ratcliff_obershelp', 'arith_ncd', 'rle_ncd', 'bwtrle_ncd', 'sqrt_ncd', 'entropy_ncd', 'bz2_ncd', 'zlib_ncd', 'editex', 'prefix', 'postfix', 'length', 'identity', 'matrix']
Current algorithm is Jaccard({'qval': 1, 'as_set': False, 'external': True})
0.16666666666666666
['hi', 'hihi', 'wie gehts', 'hallo', 'hello']
'''
Metadata
Release files for textsimi 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| textsimi-0.4.2.tar.gz | 4.3 kB | Without provenance | Details for textsimi-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textsimi-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for textsimi-0.4.2-py3-none-any.whl |
Total release size: 9.8 kB
Release files / textsimi-0.4.2.tar.gz
| Download URL | textsimi-0.4.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed8bc68d050d0f8c7488a0cfbaa33570fea7384c9e0d8c8bffc598b7ccfae11e
|
|
BLAKE2b-256 checksum How to use checksums |
14f0df8938f96115f2a50f93a11663103b7374bfc4e2b501202bab80576a7b3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.3
|
Release files / textsimi-0.4.2-py3-none-any.whl
| Download URL | textsimi-0.4.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
003678fc8756a72f2368ca8209b59237a0c627ca92b41f3101fbe135343aba29
|
|
BLAKE2b-256 checksum How to use checksums |
a206a48555938be74908c551cee9ac3dab6c9ba0146b1daac8adfe421eaa1729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.3
|
Security for textsimi 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.