Find similar text easily
Project description
similar
A dependency less python library made for finding similar text inspired from similar
Usage
import similar
match = similar.best_match("apply", ["pickle", "apple", "orange"])
print(match)
> apple
Extras
Also works with
file -
import similar
match = similar.best_match("apply", open("words.txt", "r"))
print(match)
> apple
or generator object
import similar
def genwords():
for word in ["picke", "apple", "orange"]:
yield word
match = similar.best_match("apply", genwords())
print(match)
> apple
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
similar.py-1.0.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file similar.py-1.0.tar.gz
.
File metadata
- Download URL: similar.py-1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a500c67da8798171b1410e445ca8cdd50a7bf11a9470abbd5a310d5aca38bf7a |
|
MD5 | e5ee2fe38478455c9e3b5a3c47931233 |
|
BLAKE2b-256 | eac09f451e63e06930e0d4ab2a82c9473d6ad2d4623516cc3eb8514b3b728a08 |
File details
Details for the file similar.py-1.0-py3-none-any.whl
.
File metadata
- Download URL: similar.py-1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec671b288a3e55157a9e3a989e10500b4feb124bddf528fa156b785dab7c5a61 |
|
MD5 | bf22a1f3b366554c81741fdba40b7074 |
|
BLAKE2b-256 | 3781b4281d37f13cd4442bd1da928642003226e50ff9ca798ba3c8b61f6ce3f4 |