Download SourceCode/Views/Nomalizer/test_Normalization.py from kachaf/qutuf: direct link, hf CLI and curl.
- Browser
- Download file 726 Bytes
-
https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Views/Nomalizer/test_Normalization.py
- Command line
-
hf download hf://spaces/kachaf/qutuf/SourceCode/Views/Nomalizer/test_Normalization.py
-
curl -L -o test_Normalization.py https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Views/Nomalizer/test_Normalization.py
726 Bytes
| ''' | |
| Created on ูกู โ/ู ูฃโ/ูขู ูกู | |
| ู | |
| @Created by: Muhammad Altabba | |
| ''' | |
| from Morphology.MorphologicalAnalyzer import * | |
| from PrematureTagger import PrematureTagger | |
| from Tokenization.Tokenizer import * | |
| from Normalization.Normalizer import Normalizer | |
| if __name__ == '__main__': | |
| tok = Tokenizer("ุงููุนูุฑูุจูููููููููุฉู"); | |
| norm = Normalizer(tok.Sentences); | |
| norm.Normalize(); | |
| for i in range(len(norm.Sentences)): | |
| for j in range(len(norm.Sentences[i].Words)): | |
| print(norm.Sentences[i].Words[j].OriginalString) | |
| print(norm.Sentences[i].Words[j].FirstNormalizationForm) | |
| print(norm.Sentences[i].Words[j].SecondNormalizationForm) | |
| # | |
| x = 0; | |