public class BaseSynthesizer extends Object implements Synthesizer
| Constructor and Description |
|---|
BaseSynthesizer(String resourceFileName,
String tagFileName) |
| 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 posTag,
boolean posTagRegExp)
Generates a form of the word with a given POS tag for a given lemma.
|
public BaseSynthesizer(String resourceFileName,
String tagFileName)
public String[] synthesize(AnalyzedToken token, String posTag) throws IOException
synthesize in interface Synthesizertoken - AnalyzedToken to be inflected.posTag - The desired part-of-speech tag.IOExceptionpublic String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
Synthesizersynthesize 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)
SynthesizergetPosTagCorrection in interface SynthesizerposTag - Original POS tag.
to correct.Copyright © 2005-2011 Daniel Naber