Trait rust2vec::ReadWord2Vec
source · pub trait ReadWord2Vec<R>where
R: BufRead,{
fn read_word2vec_binary(reader: &mut R) -> Result<Embeddings, Error>;
}
Expand description
Method to construct Embeddings
from a word2vec binary file.
This trait defines an extension to Embeddings
to read the word embeddings
from a file in word2vec binary format.
Required Methods
sourcefn read_word2vec_binary(reader: &mut R) -> Result<Embeddings, Error>
fn read_word2vec_binary(reader: &mut R) -> Result<Embeddings, Error>
Read the embeddings from the given buffered reader.