Package aranalex :: Module stem_verb :: Class verbStemmer
[hide private]
[frames] | no frames]

Class verbStemmer

source code

Arabic verb stemmer

Instance Methods [hide private]
 
__init__(self, debug=False) source code
 
create_index_affix(self)
create index from the affix dictionary to accelerate the search in the dictionary for verbs
source code
 
generate_possible_conjug(self, infinitive_verb, unstemed_verb, affix, future_type=u'َ', externPrefix='-', externSuffix='-') source code
 
getInfinitiveVerbByStem(self, verb, transitive) source code
True/False.
is_compatible_proaffix_affix(self, procletic, encletic, affix)
Verify if proaffixes (sytaxic affixes) are compatable with affixes ( conjugation)
source code
 
is_compatible_proaffix_tense(self, procletic, encletic, tense, pronoun) source code
 
set_debug(self, debug)
Set the debug attribute to allow printing internal analysis results.
source code
 
stemming_verb(self, verb) source code
 
verify_affix(self, word, list_seg, affix_list) source code
unicode.
vocalize(self, verb, proclitic, enclitic)
Join the verb and its affixes, and get the vocalized form
source code
Method Details [hide private]

is_compatible_proaffix_affix(self, procletic, encletic, affix)

source code 

Verify if proaffixes (sytaxic affixes) are compatable with affixes ( conjugation)

Parameters:
  • procletic (unicode.) - first level prefix.
  • encletic (unicode.) - first level suffix.
  • affix (unicode.) - second level affix.
Returns: True/False.
compatible.

set_debug(self, debug)

source code 

Set the debug attribute to allow printing internal analysis results.

Parameters:
  • debug (True/False.) - the debug value.

vocalize(self, verb, proclitic, enclitic)

source code 

Join the verb and its affixes, and get the vocalized form

Parameters:
  • verb (unicode.) - verb found in dictionary.
  • proclitic (unicode.) - first level prefix.
  • enclitic (unicode.) - first level suffix.
Returns: unicode.
vocalized word.