[][src]Trait rust2vec::word2vec::ReadWord2Vec

pub trait ReadWord2Vec<R> where
    Self: Sized,
    R: BufRead
{ fn read_word2vec_binary(
        reader: &mut R,
        normalize: bool
    ) -> Result<Self, Error>; }

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, normalize: bool) -> Result<Self, Error>

Read the embeddings from the given buffered reader.

Loading content...

Implementors

impl<R> ReadWord2Vec<R> for Embeddings<SimpleVocab, NdArray> where
    R: BufRead
[src]

Loading content...