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 ",
}