Trait finalfusion::prelude::ReadFastText[][src]

pub trait ReadFastText where
    Self: Sized
{ fn read_fasttext(reader: &mut impl BufRead) -> Result<Self>;
fn read_fasttext_lossy(reader: &mut impl BufRead) -> Result<Self>; }
Expand description

Read embeddings in the fastText format.

Required methods

Read embeddings in the fastText format.

Read embeddings in the fastText format lossily.

In constrast to read_fasttext, this method does not fail on reading tokens with invalid UTF-8 byte sequences. Invalid UTF-8 sequences will be replaced by the unicode replacement character.

Implementors