| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.freetts.PartOfSpeechImpl
Implementation of a PartOfSpeech that reads the info
 from a file.  The format of the file is as follows:
 
word pos word pos word pos ...Where
word is the word and pos is the
 part of speech for the word.  The part of speech is implementation
 dependent.
| Constructor Summary | |
PartOfSpeechImpl(java.net.URL url,
                 java.lang.String defaultPartOfSpeech)
Creates a new PartOfSpeechImpl by reading from the given URL.  | 
|
| Method Summary | |
 java.lang.String | 
getPartOfSpeech(java.lang.String word)
Returns a description of the part of speech given a word.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public PartOfSpeechImpl(java.net.URL url,
                        java.lang.String defaultPartOfSpeech)
                 throws java.io.IOException
url - the input sourcedefaultPartOfSpeech - the default part of speech
java.io.IOException - if an error occurs| Method Detail | 
public java.lang.String getPartOfSpeech(java.lang.String word)
defaultPartOfSpeech parameter passed to the constructor.
getPartOfSpeech in interface PartOfSpeechword - the word to classify
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||