Download SourceCode/Controllers/Morphology/Entities/Particle.py from kachaf/qutuf: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Controllers/Morphology/Entities/Particle.py
- Command line
-
hf download hf://spaces/kachaf/qutuf/SourceCode/Controllers/Morphology/Entities/Particle.py
-
curl -L -o Particle.py https://huggingface.co/spaces/kachaf/qutuf/resolve/main/SourceCode/Controllers/Morphology/Entities/Particle.py
1.37 kB
| ''' | |
| Created on ٢٩/٠٥/٢٠١٠ | |
| @Created by: Muhammad Altabba | |
| ''' | |
| from ....Controllers.Morphology.Entities.Morpheme import *; | |
| from ....Models.Tagging.POSTags.POS import *; | |
| from ....Models.Tagging.POSTags.ParticlePOS import *; | |
| class ParticleConstants: | |
| """ | |
| # PyUML: Do not remove this line! # XMI_ID:_qyiSYI35Ed-gg8GOK1TmhA | |
| """ | |
| class State: | |
| #غير معالجة | |
| Unprocessed = 0; | |
| #لاصقة بادئة | |
| Proclitic = 1; | |
| #لاصقة نهائية | |
| Enclitic = 2; | |
| #منفصلة | |
| StandAlone = 4 | |
| #جميع الاحتمالات | |
| all_Cases = 7; | |
| class Particle(Morpheme): | |
| """ | |
| # PyUML: Do not remove this line! # XMI_ID:_qyiSYY35Ed-gg8GOK1TmhA | |
| """ | |
| ''' | |
| Particle | |
| ''' | |
| State = 0; | |
| ''' | |
| لاصقة بادئة = 1 | |
| لاصقة نهائية = 2 | |
| منفصلة = 4 | |
| stand alone, proclitic, enclitic | |
| ''' | |
| def __init__(self, unvoweledForm, voweledForm, state, pos = None): | |
| ''' | |
| Constructor | |
| ''' | |
| self.UnvoweledForm = unvoweledForm; | |
| self.VoweledForm = voweledForm; | |
| self.State = state; | |
| if(pos == None): | |
| self.POS = ParticlePOS(); | |
| self.POS.MainClass = POSConstants.MainClass.Particle; | |
| else: | |
| self.POS = pos; | |
| pass | |