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