public class ArabicSynthesizer extends BaseSynthesizer
There are two special additions:
possibleTags, SPELLNUMBER_TAG| Constructor and Description |
|---|
ArabicSynthesizer(Language lang) |
| Modifier and Type | Method and Description |
|---|---|
String |
correctStem(String stem,
String postag) |
String |
correctTag(String postag) |
String |
getPosTagCorrection(String posTag) |
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, getSpelledNumber, getStemmer, initPossibleTags, isException, lookup, removeExceptions, synthesizeForPosTagspublic ArabicSynthesizer(Language lang)
public String[] synthesize(AnalyzedToken token, String posTag)
synthesize in interface Synthesizersynthesize in class BaseSynthesizertoken - AnalyzedToken to be inflected.posTag - A desired part-of-speech tag.public String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
\\+INDT or \\+DT.synthesize in interface Synthesizersynthesize in class BaseSynthesizerIOExceptionpublic String getPosTagCorrection(String posTag)
getPosTagCorrection in interface SynthesizergetPosTagCorrection in class BaseSynthesizer