[][src]Trait finalfusion::compat::word2vec::WriteWord2Vec

pub trait WriteWord2Vec<W> where
    W: Write
{ fn write_word2vec_binary(&self, w: &mut W, unnormalize: bool) -> Result<()>; }

Method to write Embeddings to a word2vec binary file.

This trait defines an extension to Embeddings to write the word embeddings to a file in word2vec binary format.

Required methods

fn write_word2vec_binary(&self, w: &mut W, unnormalize: bool) -> Result<()>

Write the embeddings from the given writer.

If unnormalize is true, the norms vector is used to restore the original vector magnitudes.

Loading content...

Implementors

impl<W, V, S> WriteWord2Vec<W> for Embeddings<V, S> where
    W: Write,
    V: Vocab,
    S: Storage
[src]

Loading content...