public class SpanishSynthesizer extends BaseSynthesizer
Modifier and Type | Field and Description |
---|---|
static SpanishSynthesizer |
INSTANCE |
possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG
Constructor and Description |
---|
SpanishSynthesizer(Language lang)
Deprecated.
use
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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, lookup, removeExceptions, synthesizeForPosTags
public static final SpanishSynthesizer INSTANCE
public String[] synthesize(AnalyzedToken token, String posTag) throws IOException
BaseSynthesizer
synthesize
in interface Synthesizer
synthesize
in class BaseSynthesizer
token
- AnalyzedToken to be inflected.posTag
- The desired part-of-speech tag.IOException
public String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
Synthesizer
synthesize
in interface Synthesizer
synthesize
in class BaseSynthesizer
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.IOException