[][src]Trait rust2vec::text::WriteText

pub trait WriteText<W> where
    W: Write
{ fn write_text(&self, writer: &mut W) -> Result<(), Error>; }

Method to write Embeddings to a text file.

This trait defines an extension to Embeddings to write the word embeddings as text. The text will contain one word embedding per line in the following format:

word0 component_1 component_2 ... component_n

Required methods

fn write_text(&self, writer: &mut W) -> Result<(), Error>

Read the embeddings from the given buffered reader.

Loading content...

Implementors

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

fn write_text(&self, write: &mut W) -> Result<(), Error>[src]

Write the embeddings to the given writer.

Loading content...