public class PolishSynthesizer extends BaseSynthesizer implements Synthesizer
| Modifier and Type | Field and Description |
|---|---|
static PolishSynthesizer |
INSTANCE |
SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG| Constructor and Description |
|---|
PolishSynthesizer(Language lang)
Deprecated.
use
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
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 pos,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma.
|
createStemmer, getDictionary, getRomanNumber, getSpelledNumber, getStemmer, getTargetPosTag, initPossibleTags, isException, lookup, removeExceptions, synthesizeForPosTagsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSpelledNumber, getTargetPosTagpublic static final PolishSynthesizer INSTANCE
public final String[] synthesize(AnalyzedToken token, String posTag) throws IOException
BaseSynthesizersynthesize in interface Synthesizersynthesize in class BaseSynthesizertoken - AnalyzedToken to be inflected.posTag - The desired part-of-speech tag.IOExceptionpublic final String[] synthesize(AnalyzedToken token, String pos, boolean posTagRegExp) throws IOException
Synthesizersynthesize in interface Synthesizersynthesize in class BaseSynthesizertoken - the token to be used for synthesispos - POS tag of the form to be generatedposTagRegExp - Specifies whether the posTag string is a regular expression.IOExceptionpublic final String getPosTagCorrection(String posTag)
SynthesizergetPosTagCorrection in interface SynthesizergetPosTagCorrection in class BaseSynthesizerposTag - original POS tag to correct