Embeds text documents using sent2vec
Project description
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
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
nk_sent2vec-1.4.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for nk_sent2vec-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f87d76ff1592b06c0b155ae8babcac128db744942eea04e6ab6b4df3e9cf68e0 |
|
MD5 | f8f5ad94f106833172181cac0722c87b |
|
BLAKE2b-256 | f3bb36f6b4dc2177568819dfc30531954766bb494b803c8c2f05b7a7d8ae9208 |