public class PolishSynthesizer extends Object implements Synthesizer
| Constructor and Description |
|---|
PolishSynthesizer() |
| 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)
Generates a form of the word with a given POS tag for a given lemma.
|
String[] |
synthesize(AnalyzedToken token,
String pos,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma.
|
public final String[] synthesize(AnalyzedToken token, String posTag) throws IOException
Synthesizersynthesize in interface Synthesizertoken - the token to be used for synthesisposTag - POS tag of the form to be generated.IOExceptionpublic final String[] synthesize(AnalyzedToken token, String pos, boolean posTagRegExp) throws IOException
Synthesizersynthesize in interface Synthesizertoken - the token to be used for synthesispos - POS tag of the form to be generated.posTagRegExp - Specifies whether the posTag string is a
regular expression.IOExceptionpublic final String getPosTagCorrection(String posTag)
SynthesizergetPosTagCorrection in interface SynthesizerposTag - Original POS tag.
to correct.Copyright © 2005-2011 Daniel Naber