|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides the phone list for words. A Lexicon is composed of three pieces: an addenda, the compiled form, and the letter to sound rules.
| Method Summary | |
void |
addAddendum(java.lang.String word,
java.lang.String partOfSpeech,
java.lang.String[] phones)
Adds a word to the addenda. |
java.lang.String[] |
getPhones(java.lang.String word,
java.lang.String partOfSpeech)
Gets the phone list for a given word. |
java.lang.String[] |
getPhones(java.lang.String word,
java.lang.String partOfSpeech,
boolean useLTS)
Gets the phone list for a given word. |
boolean |
isLoaded()
Determines if this lexicon is loaded. |
boolean |
isSyllableBoundary(java.util.List syllablePhones,
java.lang.String[] wordPhones,
int currentWordPhone)
Determines if the currentWordPhone represents a
new syllable boundary. |
void |
load()
Loads this lexicon. |
void |
removeAddendum(java.lang.String word,
java.lang.String partOfSpeech)
Removes a word from the addenda. |
| Method Detail |
public java.lang.String[] getPhones(java.lang.String word,
java.lang.String partOfSpeech)
null is returned. The
partOfSpeech is implementation dependent, but
null always matches.
word - the word to findpartOfSpeech - the part of speech or null
public java.lang.String[] getPhones(java.lang.String word,
java.lang.String partOfSpeech,
boolean useLTS)
null is returned. The
partOfSpeech is implementation dependent, but
null always matches.
word - the word to findpartOfSpeech - the part of speech or nulluseLTS - whether to use the letter-to-sound rules when
the word is not in the lexicon.
public void addAddendum(java.lang.String word,
java.lang.String partOfSpeech,
java.lang.String[] phones)
word - the word to addpartOfSpeech - the part of speech or null
public void removeAddendum(java.lang.String word,
java.lang.String partOfSpeech)
word - the word to addpartOfSpeech - the part of speech
public boolean isSyllableBoundary(java.util.List syllablePhones,
java.lang.String[] wordPhones,
int currentWordPhone)
currentWordPhone represents a
new syllable boundary.
syllablePhones - the phones in the current syllable so farwordPhones - the phones for the whole wordcurrentWordPhone - the word phone in question
true if the phone is a new boundary
public void load()
throws java.io.IOException
java.io.IOException - if an error occurs while loadingpublic boolean isLoaded()
true if the lexicon is loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||