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")
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-1.4.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-1.4.0.tar.gz.
File metadata
- Download URL: simple_nlp_library-1.4.0.tar.gz
- Upload date:
- Size: 68.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d165a225162aa1d94e2cf161c80f2fb4bc8c925e80a35e24f526c7ca78cafdf7
|
|
| MD5 |
21061797f7c8c0173210721f045dc3dd
|
|
| BLAKE2b-256 |
18cfd3cdcd8dffffb57bc7f2407b367e3ee759a17f70bc8bba314223375f09f0
|
File details
Details for the file simple_nlp_library-1.4.0-py3-none-any.whl.
File metadata
- Download URL: simple_nlp_library-1.4.0-py3-none-any.whl
- Upload date:
- Size: 69.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32dc435b25693899deb27a83a87eecbcedbc9a20db803ada88b3aad98eadab26
|
|
| MD5 |
f72cf1a343a00959ca81ce823fdf7aca
|
|
| BLAKE2b-256 |
2c7042ff9a88f2b6d65ea8f8e27b2bdcbe845d7abee684cd6bc6539ecffe255e
|