Download SourceCode/Views/MorphologicalAnalyzer/run_WordsDBLoader.py from kachaf/qutuf: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Views/MorphologicalAnalyzer/run_WordsDBLoader.py
- Command line
-
hf download hf://spaces/kachaf/qutuf/SourceCode/Views/MorphologicalAnalyzer/run_WordsDBLoader.py
-
curl -L -o run_WordsDBLoader.py https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Views/MorphologicalAnalyzer/run_WordsDBLoader.py
1.36 kB
| # -*- coding: utf-8 -*- | |
| ''' | |
| Created on ١١/٠٥/٢٠١٠ | |
| @Created by: Muhammad Altabba | |
| ''' | |
| from RootsAndPatternsRepository import *; | |
| rap = RootsAndPatternsRepository(); | |
| rap.Load('D:/temp/AlKhalil_1/db/', 'roots2'); | |
| print('Nominal Roots = ', len(rap.NominalRoots )); | |
| for k, v in rap.NominalRoots.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Verbal Roots = ', len(rap.VerbalRoots )); | |
| for k, v in rap.VerbalRoots.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Unvoweled Nominal Patterns = ', len(rap.UnvoweledNominalPatterns)); | |
| for k, v in rap.UnvoweledNominalPatterns.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Unvoweled Verbal Patterns = ', len(rap.UnvoweledVerbalPatterns)); | |
| for k, v in rap.UnvoweledVerbalPatterns.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Voweled Nominal Patterns = ', len(rap.VoweledNominalPatterns)); | |
| for k, v in rap.UnvoweledVerbalPatterns.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Voweled Verbal Patterns = ', len(rap.VoweledVerbalPatterns)); | |
| for k, v in rap.UnvoweledVerbalPatterns.items(): | |
| print('\tPattern length = ', k, ', count = ', len(v)); | |
| print('Number of Errors: ', len(Error_Log)); | |
| for i in range(len(Error_Log)): | |
| print(Error_Log[i]); |