|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectarch.LexicalTree
public class LexicalTree
The LexicalTree stores the compiled lexicon. The tree is organized by phone prefixes and used for both training and recognition.
Constructor Summary | |
---|---|
LexicalTree(PhoneInventory phoneInventory,
Lexicon lexicon)
Construct a lexical tree using the given PhoneInventory and Lexicon. |
Method Summary | |
---|---|
void |
addToTree(Lexicon.Entry word,
Polyphone[] transcription)
Add a Polyphone sequence (i.e. |
static void |
main(java.lang.String[] args)
|
void |
rebuildTree()
Rebuild the lexical tree structure using the current PhoneInventory and Lexicon |
HMM[] |
synthesize(java.lang.Iterable<Lexicon.Entry> sent)
Synthesize a sequence of HMMs for the given sentence |
java.lang.String |
toDotFormat(boolean includeHeader)
Return a .dot representation of the LexicalTree for use with a graph plotter |
java.lang.String |
toString()
Return a String representation of the lexical tree. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LexicalTree(PhoneInventory phoneInventory, Lexicon lexicon)
phoneInventory
- lexicon
- Method Detail |
---|
public void addToTree(Lexicon.Entry word, Polyphone[] transcription)
transcription
- public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void rebuildTree()
public HMM[] synthesize(java.lang.Iterable<Lexicon.Entry> sent) throws OutOfVocabularyException
sent
- List of Lexicon.Entrys representing the sentence
OutOfVocabularyException
public java.lang.String toDotFormat(boolean includeHeader)
includeHeader
- include the .dot header?
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |