Trait rust2vec::ReadWord2Vec
[−]
[src]
pub trait ReadWord2Vec<R> where
R: BufRead, { fn read_word2vec_binary(reader: &mut R) -> Result<Embeddings>; }
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
fn read_word2vec_binary(reader: &mut R) -> Result<Embeddings>
Read the embeddings from the given buffered reader.
Implementors
impl<R> ReadWord2Vec<R> for Embeddings where
R: BufRead,