Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_nlp_library-1.4.0-py3-none-any.whl (69.2 MB view details)

Uploaded Python 3

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

Hashes for simple_nlp_library-1.4.0.tar.gz
Algorithm Hash digest
SHA256 d165a225162aa1d94e2cf161c80f2fb4bc8c925e80a35e24f526c7ca78cafdf7
MD5 21061797f7c8c0173210721f045dc3dd
BLAKE2b-256 18cfd3cdcd8dffffb57bc7f2407b367e3ee759a17f70bc8bba314223375f09f0

See more details on using hashes here.

File details

Details for the file simple_nlp_library-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_nlp_library-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32dc435b25693899deb27a83a87eecbcedbc9a20db803ada88b3aad98eadab26
MD5 f72cf1a343a00959ca81ce823fdf7aca
BLAKE2b-256 2c7042ff9a88f2b6d65ea8f8e27b2bdcbe845d7abee684cd6bc6539ecffe255e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page