Trait rust2vec::ReadText
[−]
[src]
pub trait ReadText<R> where
R: BufRead + Seek, { fn read_text(reader: &mut R) -> Result<Embeddings>; }
Method to construct Embeddings
from a text file.
This trait defines an extension to Embeddings
to read the word embeddings
from a text stream. The text should contain one word embedding per line in
the following format:
word0 component_1 component_2 ... component_n
Required Methods
fn read_text(reader: &mut R) -> Result<Embeddings>
Read the embeddings from the given buffered reader.
Implementors
impl<R> ReadText<R> for Embeddings where
R: BufRead + Seek,