Download SourceCode/Models/Normalization/NormalizationRulesDict.py from kachaf/qutuf: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Models/Normalization/NormalizationRulesDict.py
- Command line
-
hf download hf://spaces/kachaf/qutuf/SourceCode/Models/Normalization/NormalizationRulesDict.py
-
curl -L -o NormalizationRulesDict.py https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Models/Normalization/NormalizationRulesDict.py
1.23 kB
| ''' | |
| Created on ูกูกโ/ู ูฃโ/ูขู ูกู | |
| @Created by: Muhammad Altabba | |
| ''' | |
| #from Lexicon.NormalizationRulesDict import SecondNormDict | |
| ''' | |
| This dictionary stores regular expressions... for the normalization phase. | |
| To see this file clear just copy and paste on notepad! | |
| ''' | |
| FirstNormDict = dict() | |
| #FirstNormDict[char()] = char()+char(); | |
| FirstNormDict[chr(1600)] = '' #hyphen | |
| FirstNormDict[chr(1570)] = 'ุกุง' #alef-mada | |
| ''' | |
| This dictionary stores regular expressions... for the normalization phase. | |
| To see this file clear just copy and paste on notepad! | |
| ''' | |
| SecondNormDict = dict() | |
| SecondNormDict[chr(1611)] = '' # fathatan ู ู ู ู ู (SHIFT+W) | |
| SecondNormDict[chr(1612)] = '' #damatan ู ู ู ู ู (SHIFT+R) | |
| SecondNormDict[chr(1613)] = '' #kasratan ู ู ู ู ู (SHIFT+S) | |
| SecondNormDict[chr(1614)] = '' #fathaููููู (SHIFT+Q) | |
| SecondNormDict[chr(1615)] = '' #dama ู ู ู ู ู (SHIFT+E) | |
| SecondNormDict[chr(1616)] = '' #kasra ู ู ู ู ู (SHIFT+A) | |
| SecondNormDict[chr(1617)] = '' #shada ู ู ู ู ู (SHIFT+`) | |
| SecondNormDict[chr(1618)] = '' #sokon ู ู ู ู ู (SHIFT+X) | |
| #SecondNormDict['ุฆ'] = 'ุก' | |
| #SecondNormDict['ุค'] = 'ุก' | |
| #SecondNormDict['ุฃ'] = 'ุก' | |
| #SecondNormDict['ุฅ'] = 'ุก' | |