Skip to content

General-purpose extensions for sklearn, gensim, and pytorch.

License

Notifications You must be signed in to change notification settings

UnconsciousBias/ublib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ublib

General-purpose extensions for sklearn, gensim, and pytorch.

sklearn

GensimEmbeddedVectorizer

The EmbeddedVectorizer combines TfidfVectorizer with a gensim.KeyedVectors object, such that the vocabularies match.

Gensim

peek_word2vec_format

This function peeks at a word2vec file and returns the expected dimensions. Usage: peek_word2vec_format(PATH, binary=True)

Torch

InnerProduct

This InnerProduct module computes the inner product of two batches of row vectors.

About

General-purpose extensions for sklearn, gensim, and pytorch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published