|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectEnglishSynthesizer
public class EnglishSynthesizer
English word form synthesizer.
Based on part-of-speech lists in Public Domain.
See readme.txt for details, the POS tagset is
described in tagset.txt.
There are to special additions:
| Constructor Summary | |
|---|---|
EnglishSynthesizer()
|
|
| Method Summary | |
|---|---|
String |
getPosTagCorrection(String posTag)
Gets a corrected version of the POS tag used for synthesis. |
String[] |
synthesize(AnalyzedToken token,
String posTag)
Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag. |
String[] |
synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnglishSynthesizer()
| Method Detail |
|---|
public String[] synthesize(AnalyzedToken token,
String posTag)
throws IOException
synthesize in interface Synthesizertoken - AnalyzedToken to be inflected.posTag - A desired part-of-speech tag.
IOException
public String[] synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp)
throws IOException
Synthesizer
synthesize in interface Synthesizertoken - the token to be used for synthesisposTag - POS tag of the form to be generated.posTagRegExp - Specifies whether the posTag string is a
regular expression.
IOExceptionpublic String getPosTagCorrection(String posTag)
Synthesizer
getPosTagCorrection in interface SynthesizerposTag - Original POS tag.
to correct.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||