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

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>; }

Read embeddings in the fastText format.

Required methods

fn read_fasttext(reader: &mut impl BufRead) -> Result<Self>

Read embeddings in the fastText format.

fn read_fasttext_lossy(reader: &mut impl BufRead) -> Result<Self>

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.

Loading content...

Implementors

impl ReadFastText for Embeddings<FastTextSubwordVocab, NdArray>[src]

Loading content...