[][src]Trait finalfrontier::WriteModelText

pub trait WriteModelText<W> where
    W: Write
{ fn write_model_text(
        &self,
        write: &mut W,
        write_dims: bool
    ) -> Result<(), Error>; }

Trait for writing models in text format.

Required methods

fn write_model_text(&self, write: &mut W, write_dims: bool) -> Result<(), Error>

Write the model in text format.

This function only writes the word embeddings. The subword embeddings are discarded.

The write_dims parameter indicates whether the first line should contain the dimensionality of the embedding matrix.

Loading content...

Implementors

Loading content...