Trait WriteWord2Vec

Source
pub trait WriteWord2Vec<W>
where W: Write,
{ // Required method fn write_word2vec_binary(&self, w: &mut W) -> Result<(), Error>; }
Expand description

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§

Source

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

Write the embeddings from the given writer.

Implementors§

Source§

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