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.0.1.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.0.1.tar.gz.
File metadata
- Download URL: simple_nlp_library-2.0.1.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 |
9eef2d0ddb29c80545b321ed88c6c3fb72bf96320799cfea1d1f3d126c70e470
|
|
| MD5 |
12a82c94c5c29519560e6a7aa0ea5d3c
|
|
| BLAKE2b-256 |
3ba94a5ec6b2993804f6f65da72be429713c0660685bfd776ca976567b88e2bb
|
File details
Details for the file simple_nlp_library-2.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_nlp_library-2.0.1-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 |
876a859b71ed21efce1407aa64431add68d1e9f3ea50dd87eeaef1391d8b1a3a
|
|
| MD5 |
07e3c3cb5e0f5e74c7976315876941d1
|
|
| BLAKE2b-256 |
b403bb68172ff20cc2a31b3f2982ca9eb87d307b1182ad6ad97f01fd971c43ab
|