Trait finalfusion::vocab::Vocab
source · pub trait Vocab {
// Required methods
fn idx(&self, word: &str) -> Option<WordIndex>;
fn words_len(&self) -> usize;
fn vocab_len(&self) -> usize;
fn words(&self) -> &[String];
}
Expand description
Embedding vocabularies.