public class GermanSynthesizer extends BaseSynthesizer
| Modifier and Type | Field and Description |
|---|---|
static GermanSynthesizer |
INSTANCE |
possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG| Constructor and Description |
|---|
GermanSynthesizer(Language lang)
Deprecated.
use
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
lookup(String lemma,
String posTag)
Lookup the inflected forms of a lemma defined by a part-of-speech tag.
|
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.
|
createStemmer, getDictionary, getPosTagCorrection, getRomanNumber, getSpelledNumber, getStemmer, getTargetPosTag, initPossibleTags, isException, removeExceptions, synthesizeForPosTagspublic static final GermanSynthesizer INSTANCE
protected List<String> lookup(String lemma, String posTag)
BaseSynthesizerlookup in class BaseSynthesizerlemma - the lemma to be inflected.posTag - the desired part-of-speech tag.public 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 String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
Synthesizersynthesize in interface Synthesizersynthesize in class BaseSynthesizertoken - the token to be used for synthesisposTag - POS tag of the form to be generatedposTagRegExp - Specifies whether the posTag string is a regular expression.IOException