public interface Synthesizer
| Modifier and Type | Method and Description |
|---|---|
String |
getPosTagCorrection(String posTag)
Gets a corrected version of the POS tag used for synthesis.
|
String |
getSpelledNumber(String arabicNumeral)
Spells out a number
|
String |
getTargetPosTag(List<String> posTags,
String targetPosTag)
Select the desired POS tag to synthesize
|
String[] |
synthesize(AnalyzedToken token,
String posTag)
Generates a form of the word with a given POS tag for a given lemma.
|
String[] |
synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma.
|
String[] synthesize(AnalyzedToken token, String posTag) throws IOException
token - the token to be used for synthesisposTag - POS tag of the form to be generatedIOExceptionString[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
token - the token to be used for synthesisposTag - POS tag of the form to be generatedposTagRegExp - Specifies whether the posTag string is a regular expression.IOExceptionString getPosTagCorrection(String posTag)
posTag - original POS tag to correctString getSpelledNumber(String arabicNumeral)
arabicNumeral - in arabic numerals