public class CatalanSynthesizer extends BaseSynthesizer
| Modifier and Type | Field and Description |
|---|---|
static CatalanSynthesizer |
INSTANCE |
static List<String> |
LemmasToIgnore |
possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG| Modifier | Constructor and Description |
|---|---|
protected |
CatalanSynthesizer() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPossibleTags() |
String |
getTargetPosTag(List<String> posTags,
String targetPosTag)
Select the desired POS tag to synthesize
|
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.
|
String[] |
synthesize(AnalyzedToken token,
String posTag,
boolean posTagRegExp,
String langVariantCode) |
String[] |
synthesize(AnalyzedToken token,
String posTag,
String langVariantCode) |
createStemmer, getDictionary, getPosTagCorrection, getRomanNumber, getSpelledNumber, getStemmer, initPossibleTags, isException, lookup, removeExceptions, synthesizeForPosTagspublic static final CatalanSynthesizer INSTANCE
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, String langVariantCode) throws IOException
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.IOExceptionpublic String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp, String langVariantCode) throws IOException
IOExceptionpublic String getTargetPosTag(List<String> posTags, String targetPosTag)
SynthesizergetTargetPosTag in interface SynthesizergetTargetPosTag in class BaseSynthesizerpublic List<String> getPossibleTags() throws IOException
IOException