public class Trie<Symbol> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<marytts.fst.Trie.TrieNode> |
finalNodes |
protected Map<Symbol,Integer> |
label2id |
protected List<Symbol> |
labels |
protected Map<marytts.fst.Trie.TrieNode,Integer> |
reprs |
protected List<marytts.fst.Trie.TrieNode> |
rlist |
protected marytts.fst.Trie.TrieNode |
root |
Constructor and Description |
---|
Trie()
Standard constructor for a trie.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Symbol[] entry)
This adds an entry to the trie.
|
void |
computeMinimization()
This computes the minimization of the trie, i.e.
|
String |
toString() |
protected marytts.fst.Trie.TrieNode root
protected List<marytts.fst.Trie.TrieNode> finalNodes
protected List<marytts.fst.Trie.TrieNode> rlist
public void add(Symbol[] entry)
entry
- entrypublic void computeMinimization()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.