Skip to main content

Sentence Embedding

A python wrapper for embedding short texts or sentences using sent2vec, which draws on FastText.

To embed a list of strings documents, use:

from nk_sent2vec import Sent2Vec 

vectorizer = Sent2Vec(path = '/root/models/torontobooks_unigrams.bin')

print(vectorizer.embed_sentences(sentences=documents))

Testing

Tests can be run using pytest -s tests

Also see makefile for default commands

Metadata

Release files for nk-sent2vec 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nk-sent2vec 1.4.2
File Size Uploaded Provenance Actions
nk_sent2vec-1.4.2.tar.gz 3.3 kB Without provenance Details for nk_sent2vec-1.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nk-sent2vec 1.4.2
File Interpreter ABI Platform Actions
nk_sent2vec-1.4.2-py3-none-any.whl Python 3 none any Details for nk_sent2vec-1.4.2-py3-none-any.whl

Total release size: 7.4 kB

Release files / nk_sent2vec-1.4.2.tar.gz

Download URL nk_sent2vec-1.4.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a1880f796aca315677f3e9cfa8c36d5a39065c18c29614a04417e28fa326f478
BLAKE2b-256 checksum
How to use checksums
0f5bb60eeaf1f89c64d0d784171f78b5b72dff031f9be86d8ce06f658b3daef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / nk_sent2vec-1.4.2-py3-none-any.whl

Download URL nk_sent2vec-1.4.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f87d76ff1592b06c0b155ae8babcac128db744942eea04e6ab6b4df3e9cf68e0
BLAKE2b-256 checksum
How to use checksums
f3bb36f6b4dc2177568819dfc30531954766bb494b803c8c2f05b7a7d8ae9208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Security for nk-sent2vec 1.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page