Download SourceCode/Controllers/Normalization/CustomizeRule.py from kachaf/qutuf: direct link, hf CLI and curl.
- Browser
- Download file 693 Bytes
-
https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Controllers/Normalization/CustomizeRule.py
- Command line
-
hf download hf://spaces/kachaf/qutuf/SourceCode/Controllers/Normalization/CustomizeRule.py
-
curl -L -o CustomizeRule.py https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Controllers/Normalization/CustomizeRule.py
693 Bytes
| ''' | |
| Created on ٢٣/٠٣/٢٠١٠ | |
| @author: Mad Blue | |
| ''' | |
| from Lexicon.NormalizationRulesDict import * | |
| class CustomizeRule(object): | |
| """ | |
| # PyUML: Do not remove this line! # XMI_ID:_qz4V1I35Ed-gg8GOK1TmhA | |
| """ | |
| ''' | |
| classdocs | |
| ''' | |
| customize=dict() | |
| def __init__(self): | |
| ''' | |
| Constructor | |
| ''' | |
| self.customize = FirstNormDict; | |
| for key, value in SecondNormDict.items(): | |
| self.customize.addRule(self,key,value); | |
| pass | |
| def addRule(self,key,value): | |
| self.customize[key]=value; | |
| pass | |
| def reomveRule(self,key): | |
| self.customize.pop(key); | |
| pass | |