class documentation
ISRI Arabic stemmer based on algorithm: Arabic Stemming without a root dictionary. Information Science Research Institute. University of Nevada, Las Vegas, USA.
A few minor modifications have been made to ISRI basic algorithm. See the source code of this module for more information.
isri.stem(token) returns Arabic root for the given token.
The ISRI Stemmer requires that all tokens have Unicode string types. If you use Python IDLE on Arabic Windows you have to decode text first using Arabic '1256' coding.
Method | __init__ |
Undocumented |
Method | end |
ending step (word of length five) |
Method | end |
ending step (word of length six) |
Method | norm |
normalization: num=1 normalize diacritics num=2 normalize initial hamza num=3 both 1&2 |
Method | pre1 |
normalize short prefix |
Method | pre32 |
remove length three and length two prefixes in this order |
Method | pro |
process length four patterns and extract length three roots |
Method | pro |
process length five patterns and extract length three roots |
Method | pro |
process length five patterns and extract length four roots |
Method | pro |
process length six patterns and extract length three roots |
Method | pro |
process length six patterns and extract length four roots |
Method | stem |
Stemming a word token using the ISRI stemmer. |
Method | suf1 |
normalize short sufix |
Method | suf32 |
remove length three and length two suffixes in this order |
Method | waw |
remove connective ‘و’ if it precedes a word beginning with ‘و’ |
Instance Variable | p1 |
Undocumented |
Instance Variable | p2 |
Undocumented |
Instance Variable | p3 |
Undocumented |
Instance Variable | pr4 |
Undocumented |
Instance Variable | pr53 |
Undocumented |
Instance Variable | re |
Undocumented |
Instance Variable | re |
Undocumented |
Instance Variable | re |
Undocumented |
Instance Variable | s1 |
Undocumented |
Instance Variable | s2 |
Undocumented |
Instance Variable | s3 |
Undocumented |
Instance Variable | stop |
Undocumented |