Struct tongrams::SimpleVocabulary
source ·
[−]pub struct SimpleVocabulary { /* private fields */ }
Expand description
Simple implementation of Vocabulary
with HashMap
.
Trait Implementations
Returns the “default value” for a type. Read more
Creates an empty Vocabulary
.
Builds a Vocabulary
from a sequence of tokens.
Serializes the data structure into the writer.
Deserializes the data structure from the reader.
Gets the number of bytes to serialize the data structure.
Gets breakdowns of memory usages for components.