word2vec.WordVectors.from_binary¶
-
classmethod
WordVectors.
from_binary
(fname, vocabUnicodeSize=78, desired_vocab=None, encoding=u'utf-8')[source]¶ Create a WordVectors class based on a word2vec binary file
Parameters: fname : path to file
vocabUnicodeSize: the maximum string length (78, by default)
desired_vocab: if set, this will ignore any word and vector that
doesn’t fall inside desired_vocab.
Returns: WordVectors instance