[−][src]Trait rust2vec::vocab::Vocab
Embedding vocabularies.
Required methods
fn idx(&self, word: &str) -> Option<WordIndex>
Get the index of a token.
fn len(&self) -> usize
Get the vocabulary size.
fn words(&self) -> &[String]
Get the words in the vocabulary.
Implementors
impl Vocab for VocabWrap
[src]
fn idx(&self, word: &str) -> Option<WordIndex>
[src]
fn len(&self) -> usize
[src]
Get the vocabulary size.
fn words(&self) -> &[String]
[src]
Get the words in the vocabulary.