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[] |
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 Arabic regexp based synthesizer that allows adding articles
when the regexp-based tag ends with a special signature
\\+GM or \\+GF. |
createStemmer, getDictionary, getPosTagCorrection, getSpelledNumber, getStemmer, initPossibleTags, lookuppublic ArabicSynthesizer(Language lang)
public String[] synthesize(AnalyzedToken token, String posTag) throws IOException
synthesize in interface Synthesizersynthesize in class BaseSynthesizertoken - AnalyzedToken to be inflected.posTag - A desired part-of-speech tag.IOExceptionpublic String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
\\+GM or \\+GF.synthesize in interface Synthesizersynthesize in class BaseSynthesizerIOException