Struct tongrams::trie_count_lm::TrieCountLmLookuper
source ·
[−]pub struct TrieCountLmLookuper<'a, T, V, A> where
T: TrieArray,
V: Vocabulary,
A: RankArray, { /* private fields */ }
Expand description
Lookuper for TrieCountLm
.
Implementations
impl<'a, T, V, A> TrieCountLmLookuper<'a, T, V, A> where
T: TrieArray,
V: Vocabulary,
A: RankArray,
impl<'a, T, V, A> TrieCountLmLookuper<'a, T, V, A> where
T: TrieArray,
V: Vocabulary,
A: RankArray,
Creates TrieCountLmLookuper
from TrieCountLm
.
Looks up a gram, returning the count.
Looks up a gram in which tokens are sparated by a space, (e.g., "the same time"
)
returning the count.