Skip to content

embedding documents in a vector space

Notifications You must be signed in to change notification settings

CHATTG1/nk-sent2vec

Repository files navigation

Document Embedding

A python wrapper for embedding text documents using sent2vec, which draws on FastText.

To embed a list of strings documents, use:

from nk_sent2vec import Sent2Vec 

vectorizer = Sent2Vec(path = '/home/nk-sent2vec/models/torontobooks_unigrams.bin')

print(vectorizer.embed_sentences(sentences=[documents]))

Testing

Tests can be run using nosetests -s

About

embedding documents in a vector space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published