Name : python312-text-comparer
| |
Version : 0.0.2
| Vendor : obs://build_opensuse_org/home:jayvdb
|
Release : 3.58
| Date : 2020-01-14 08:52:54
|
Group : Development/Languages/Python
| Source RPM : python-text-comparer-0.0.2-3.58.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Metric for comparing text
|
Description :
Text Comparer >============
Uses cosine similarity to give a numerical evaluation of the similarity of two texts (0 to 1).
This code has a companion blog-post here: http://engineering.aweber.com/cosine-similarity/
Sample Usage ------------ ```python In [1]: from vectorizer import compare_texts
In [2]: compare_texts(\'Mary had a little shotgun.\', \'Mary loves her shotgun\') Out[2]: 0.66666666666666663
In [3]: compare_texts(\'John loves Mary.\', \'But Mary has a shotgun.\') Out[3]: 0.33333333333333331 ```
The higher score in `2` implies that the first two sentences are more similar than the second two. A classic tale of the love-linked-list.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/jayvdb:/py-new/openSUSE_Tumbleweed/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
python3.12dist(text-comparer)
python312-text-comparer
python3dist(text-comparer)
Requires :