File size: 1,088 Bytes
77a12fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
"""
Constants that are used by the model
"""
HARAQAT = ["ู", "ู", "ู", "ู", "ู", "ู", "ู", "ู"]
ARAB_CHARS = "ูุนุธุญุฑุณูุดุถู ุซูุตุทูุขู
ุงุฅูุฒุกุฃูุคุบุฌุฆุฏุฉุฎูุจุฐุชู"
PUNCTUATIONS = [".", "ุ", ":", "ุ", "-", "ุ"]
VALID_ARABIC = HARAQAT + list(ARAB_CHARS)
BASIC_HARAQAT = {
"ู": "Fatha ",
"ู": "Fathatah ",
"ู": "Damma ",
"ู": "Dammatan ",
"ู": "Kasra ",
"ู": "Kasratan ",
"ู": "Sukun ",
"ู": "Shaddah ",
}
ALL_POSSIBLE_HARAQAT = {
"": "No Diacritic ",
"ู": "Fatha ",
"ู": "Fathatah ",
"ู": "Damma ",
"ู": "Dammatan ",
"ู": "Kasra ",
"ู": "Kasratan ",
"ู": "Sukun ",
"ู": "Shaddah ",
"ูู": "Shaddah + Fatha ",
"ูู": "Shaddah + Fathatah ",
"ูู": "Shaddah + Damma ",
"ูู": "Shaddah + Dammatan ",
"ูู": "Shaddah + Kasra ",
"ูู": "Shaddah + Kasratan ",
}
|