class documentation
Data class for storing collections of TIToken
instances based on tivars.tokens.scripts.Tokens
TIToken
instances may be obtained from various maps:
- The byte map is indexed by token bytes.
- The lang map is indexed by language code, then token name.
- The name map is indexed by token name, regardless of language.
The byte and name maps may be accessed via __getitem__
.
Additionally, a trie map contains a TITokenTrie
for each language, indexed by language code.