public class EnglishSynthesizer extends BaseSynthesizer
Modifier and Type | Field and Description |
---|---|
static EnglishSynthesizer |
INSTANCE |
possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG
Constructor and Description |
---|
EnglishSynthesizer(Language lang)
Deprecated.
use
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isException(String w) |
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)
Special English regexp based synthesizer that allows adding articles
when the regexp-based tag ends with a special signature
\\+INDT or \\+DT . |
createStemmer, getDictionary, getPosTagCorrection, getRomanNumber, getSpelledNumber, getStemmer, getTargetPosTag, initPossibleTags, lookup, removeExceptions, synthesizeForPosTags
public static final EnglishSynthesizer INSTANCE
public String[] synthesize(AnalyzedToken token, String posTag) throws IOException
synthesize
in interface Synthesizer
synthesize
in class BaseSynthesizer
token
- AnalyzedToken to be inflected.posTag
- A desired part-of-speech tag.IOException
public String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
\\+INDT
or \\+DT
.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
protected boolean isException(String w)
isException
in class BaseSynthesizer