|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.dictionary.Word
Represents a word, its spelling and its pronunciation.
Field Summary | |
static Word |
UNKNOWN
The Word representing the unknown word. |
Constructor Summary | |
Word(java.lang.String spelling,
Pronunciation[] pronunciations,
boolean isFiller)
Creates a Word |
Method Summary | |
Pronunciation |
getMostLikelyPronunciation()
Get the highest probability pronunciation for a word |
Pronunciation[] |
getPronunciations()
Retrieves the pronunciations of this word |
Pronunciation[] |
getPronunciations(WordClassification wordClassification)
Retrieves the pronunciations of this word |
java.lang.String |
getSpelling()
Returns the spelling of the word. |
boolean |
isFiller()
Determines if this is a filler word |
boolean |
isSentenceEndWord()
Returns true if this word is an end of sentence word |
boolean |
isSentenceStartWord()
Returns true if this word is a start of sentence word |
java.lang.String |
toString()
Returns a string representation of this word, which is the spelling |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Word UNKNOWN
Constructor Detail |
public Word(java.lang.String spelling, Pronunciation[] pronunciations, boolean isFiller)
spelling
- the spelling of this wordpronunciations
- the pronunciations of this wordisFiller
- true if the word is a filler wordMethod Detail |
public java.lang.String getSpelling()
public boolean isFiller()
true
if this word is a filler word,
otherwise it returns false
public boolean isSentenceEndWord()
public boolean isSentenceStartWord()
public Pronunciation[] getPronunciations(WordClassification wordClassification)
wordClassification
- the classification of the word
(typically part of speech classification) or null if all word
classifications are acceptable. The word classification must be
one of the set returned by
Dictionary.getPossibleWordClassifications
public Pronunciation[] getPronunciations()
public Pronunciation getMostLikelyPronunciation()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |