Skip to content

NewKnowledge/nk-sent2vec

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Embedding sentences in a vector space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •