Simple NLP library
Project description
simple_nlp_library
Simple NLP library
usage
installation
python3 -m pip install --upgrade simple_nlp_library
api
semantic_tokens
preprocessing.semantic_tokens("The quick brown fox jumps over the lazy dog")
cosine_similarity
metrics.cosine_similarity([1.0, 1.0, 1.0], [4.0, 4.0, 4.0])
inserting_distance
metrics.inserting_distance("simple", "simpler")
inserting_similarity
metrics.inserting_similarity("simple", "simpler")
jaccard_similarity
metrics.jaccard_similarity([1, 2, 3], [1, 2, 3, 4])
embeddings
vectors = embeddings.model()
vector = vectors["facebook"]
sentence similarity
vectors = embeddings.model()
metrics.cosine_similarity(
embeddings.tokens_vector(vectors, preprocessing.semantic_tokens("the slow brown bear jumped over the lazy dog")),
embeddings.tokens_vector(vectors, preprocessing.semantic_tokens("the quick red fox jumped over the lazy cat")),
)
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
simple_nlp_library-2.1.0.tar.gz
(68.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_nlp_library-2.1.0.tar.gz.
File metadata
- Download URL: simple_nlp_library-2.1.0.tar.gz
- Upload date:
- Size: 68.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43eee7041988e1d5ee82dc57d8588db2c55648a30a3c597bd350f9446ff54a88
|
|
| MD5 |
8d5ca6b95c646e36ed088090d8016cb4
|
|
| BLAKE2b-256 |
ce8849a5b62e22d466f732bcd27a33fcd1a8624b95410eacfa63e411a0740c41
|
File details
Details for the file simple_nlp_library-2.1.0-py3-none-any.whl.
File metadata
- Download URL: simple_nlp_library-2.1.0-py3-none-any.whl
- Upload date:
- Size: 69.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7dddaf96f8549706aacd7c9d91aec6a1a540c61ae812cba95a4292d1450bb32
|
|
| MD5 |
6a06b5d122168075da012bcab4717c85
|
|
| BLAKE2b-256 |
e4dfcde51e27a2ad7e1d9967ac72d68c58dbb671ffcc5143efb41e40dec9524b
|