[][src]Trait finalfusion::vocab::NGramIndices

pub trait NGramIndices {
    fn ngram_indices(&self, word: &str) -> Option<Vec<(String, Option<usize>)>>;
}

Get subword indices.

Get the subword ngrams and their indices of a word in the subword vocabulary.

Required methods

fn ngram_indices(&self, word: &str) -> Option<Vec<(String, Option<usize>)>>

Return the subword ngrams and their indices of a word, in the subword vocabulary.

Loading content...

Implementors

impl<I> NGramIndices for SubwordVocab<I> where
    I: Indexer
[src]

Loading content...