public class ArabicSynthesizer extends BaseSynthesizer
There are two special additions:
Modifier and Type | Field and Description |
---|---|
static ArabicSynthesizer |
INSTANCE |
possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG
Constructor and Description |
---|
ArabicSynthesizer(Language lang)
Deprecated.
use
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
correctStem(String stem,
String postag) |
String |
correctTag(String postag) |
String |
getPosTagCorrection(String posTag)
Gets a corrected version of the POS tag used for synthesis.
|
static String |
inflectAdjectiveTanwinNasb(String word,
boolean feminin) |
List<String> |
inflectLemmaLike(String targetLemma,
AnalyzedToken sourcetoken) |
static String |
inflectMafoulMutlq(String word) |
String |
setEnclitic(AnalyzedToken token,
String suffix) |
List<String> |
setEncliticMultiple(AnalyzedToken token,
String suffix) |
String |
setJarProcletic(AnalyzedToken token,
String prefix) |
String |
setProcletic(AnalyzedToken token,
String prefix) |
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, getRomanNumber, getSpelledNumber, getStemmer, getTargetPosTag, initPossibleTags, isException, lookup, removeExceptions, synthesizeForPosTags
public static final ArabicSynthesizer INSTANCE
public String[] synthesize(AnalyzedToken token, String posTag)
synthesize
in interface Synthesizer
synthesize
in class BaseSynthesizer
token
- AnalyzedToken to be inflected.posTag
- A desired part-of-speech tag.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
public String getPosTagCorrection(String posTag)
Synthesizer
getPosTagCorrection
in interface Synthesizer
getPosTagCorrection
in class BaseSynthesizer
posTag
- original POS tag to correctpublic String setEnclitic(AnalyzedToken token, String suffix)
public List<String> setEncliticMultiple(AnalyzedToken token, String suffix)
public String setJarProcletic(AnalyzedToken token, String prefix)
public String setProcletic(AnalyzedToken token, String prefix)
public List<String> inflectLemmaLike(String targetLemma, AnalyzedToken sourcetoken)