Package org.languagetool.tagging.ar
Class ArabicTagManager
java.lang.Object
org.languagetool.tagging.ar.ArabicTagManager
- Since:
- 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConjunctionPrefix(String postag) getDefinitePrefix(String postag) charprivate intgetFlagPos(String postag, String flagType) private intgetFlagPos1(String postag, String flagType) Deprecated.private intgetFlagPos2(String tagString, String flagType) getJarPrefix(String postag) getPronounSuffix(String postag) booleanhasConjunction(String postag) booleanbooleanhasPronoun(String postag) booleanbooleanisAttached(String postag) booleanbooleanisDefinite(String postag) booleanbooleanbooleanisFutureTense(String postag) booleanbooleanbooleanbooleanisStopWord(String postag) booleanisUnAttachedNoun(String postag) booleanprivate voidmergePosTag(String sourcePosTag, String targetPosTag) modifyPosTag(String postag, List<String> tags) setConjunction(String postag, String flag) setDefinite(String postag, String flag) setMajrour(String postag) setMansoub(String postag) setMarfou3(String postag) setProcleticFlags(String postag) setPronoun(String postag, String flag) unifyPronounTag(String postag)
-
Field Details
-
NOUN_TAG_LENGTH
private static final int NOUN_TAG_LENGTH- See Also:
-
NOUN_FLAG_POS_WORDTYPE
private static final int NOUN_FLAG_POS_WORDTYPE- See Also:
-
NOUN_FLAG_POS_CATEGORY
private static final int NOUN_FLAG_POS_CATEGORY- See Also:
-
NOUN_FLAG_POS_GENDER
private static final int NOUN_FLAG_POS_GENDER- See Also:
-
NOUN_FLAG_POS_NUMBER
private static final int NOUN_FLAG_POS_NUMBER- See Also:
-
NOUN_FLAG_POS_CASE
private static final int NOUN_FLAG_POS_CASE- See Also:
-
NOUN_FLAG_POS_INFLECT_MARK
private static final int NOUN_FLAG_POS_INFLECT_MARK- See Also:
-
NOUN_FLAG_POS_CONJ
private static final int NOUN_FLAG_POS_CONJ- See Also:
-
NOUN_FLAG_POS_JAR
private static final int NOUN_FLAG_POS_JAR- See Also:
-
NOUN_FLAG_POS_PRONOUN
private static final int NOUN_FLAG_POS_PRONOUN- See Also:
-
VERB_TAG_LENGTH
private static final int VERB_TAG_LENGTH- See Also:
-
VERB_FLAG_POS_WORDTYPE
private static final int VERB_FLAG_POS_WORDTYPE- See Also:
-
VERB_FLAG_POS_CATEGORY
private static final int VERB_FLAG_POS_CATEGORY- See Also:
-
VERB_FLAG_POS_TRANS
private static final int VERB_FLAG_POS_TRANS- See Also:
-
VERB_FLAG_POS_GENDER
private static final int VERB_FLAG_POS_GENDER- See Also:
-
VERB_FLAG_POS_NUMBER
private static final int VERB_FLAG_POS_NUMBER- See Also:
-
VERB_FLAG_POS_PERSON
private static final int VERB_FLAG_POS_PERSON- See Also:
-
VERB_FLAG_POS_INFLECT_MARK
private static final int VERB_FLAG_POS_INFLECT_MARK- See Also:
-
VERB_FLAG_POS_TENSE
private static final int VERB_FLAG_POS_TENSE- See Also:
-
VERB_FLAG_POS_VOICE
private static final int VERB_FLAG_POS_VOICE- See Also:
-
VERB_FLAG_POS_CASE
private static final int VERB_FLAG_POS_CASE- See Also:
-
VERB_FLAG_POS_CONJ
private static final int VERB_FLAG_POS_CONJ- See Also:
-
VERB_FLAG_POS_ISTIQBAL
private static final int VERB_FLAG_POS_ISTIQBAL- See Also:
-
VERB_FLAG_POS_PRONOUN
private static final int VERB_FLAG_POS_PRONOUN- See Also:
-
PARTICLE_TAG_LENGTH
private static final int PARTICLE_TAG_LENGTH- See Also:
-
PARTICLE_FLAG_POS_WORDTYPE
private static final int PARTICLE_FLAG_POS_WORDTYPE- See Also:
-
PARTICLE_FLAG_POS_CATEGORY
private static final int PARTICLE_FLAG_POS_CATEGORY- See Also:
-
PARTICLE_FLAG_POS_OPTION
private static final int PARTICLE_FLAG_POS_OPTION- See Also:
-
PARTICLE_FLAG_POS_GENDER
private static final int PARTICLE_FLAG_POS_GENDER- See Also:
-
PARTICLE_FLAG_POS_NUMBER
private static final int PARTICLE_FLAG_POS_NUMBER- See Also:
-
PARTICLE_FLAG_POS_CASE
private static final int PARTICLE_FLAG_POS_CASE- See Also:
-
PARTICLE_FLAG_POS_CONJ
private static final int PARTICLE_FLAG_POS_CONJ- See Also:
-
PARTICLE_FLAG_POS_JAR
private static final int PARTICLE_FLAG_POS_JAR- See Also:
-
PARTICLE_FLAG_POS_PRONOUN
private static final int PARTICLE_FLAG_POS_PRONOUN- See Also:
-
mapFlagPos
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
ArabicTagManager
public ArabicTagManager()
-
-
Method Details
-
modifyPosTag
-
addTag
-
addTag
-
isMajrour
- Returns:
- true if have flag majrour
-
setJar
- Returns:
- add jar flag to noun
-
setDefinite
- Returns:
- add definite flag to noun
-
unifyPronounTag
-
setConjunction
- Returns:
- add conjuction flag to noun
-
setPronoun
- Returns:
- add conjunction flag to noun
-
isFutureTense
- Returns:
- true if have flag future
-
isUnAttachedNoun
- Returns:
- true if have flag is noun and has attached pronoun
-
isAttached
- Returns:
- true if have flag is noun/verb and has attached pronoun
-
isStopWord
- Returns:
- test if word has stopword tagging
-
isNoun
- Returns:
- true if have flag noun
-
isDual
- Returns:
- true if have flag dual
-
isVerb
- Returns:
- true if have flag verb
-
isAdj
- Returns:
- true if have flag Adj
-
isMasdar
- Returns:
- true if have flag Adj
-
isDefinite
- Returns:
- true if have flag is noun and definite
-
isFeminin
- Returns:
- true if have flag is feminine or masculine
-
isBreak
- Returns:
- true if a word has procletics like conj and jar
-
hasJar
- Returns:
- true if the postag has a Jar
-
hasPronoun
- Returns:
- true if the postag has a Jar
-
hasConjunction
- Returns:
- true if the postag has a conjuction
-
getDefinitePrefix
- Returns:
- if have a flag which is a noun and definite, return the prefix letter for this case
-
getJarPrefix
- Returns:
- the Jar prefix letter
-
getConjunctionPrefix
- Returns:
- the Conjunction prefix letter
-
getPronounSuffix
- Returns:
- if have a flag which is a noun and has pronoun, return the suffix letters for this case
-
getFlagPos
-
getFlagPos1
Deprecated. -
getFlag
-
setFlag
-
loadHashmap
private void loadHashmap() -
getFlagPos2
-
setProcleticFlags
-
mergePosTag
-
setSingle
-
setDual
-
setPlural
-
setMajrour
-
setMarfou3
-
setMansoub
-
setTanwin
-