File size: 1,019 Bytes
21baa2f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
'''
Created on ٢١/٠٦/٢٠١٠
@Created by: Muhammad Altabba
'''
class TransitionActions(object):
"""
# PyUML: Do not remove this line! # XMI_ID:_qzIIYI35Ed-gg8GOK1TmhA
"""
'''
Contains a List of Transition Action
'''
Actions = [];
OnInnerIndexes = [];
def __init__(self, actions, onInnerIndexes):
'''
Constructor
'''
self.Actions = actions;
self.OnInnerIndexes = onInnerIndexes;
pass
def ApplyToWord(self, sentence, wordIndex):
# print('-- apply TransitionActions... '+str(self.Actions));
if (self.OnInnerIndexes == []):
for k in range(len(self.Actions)):
# print('len(self.Actions)' + str(len(self.Actions)));
self.Actions[k].ApplyToWord(sentence, wordIndex);
else:
for k in range(len(self.Actions)):
self.Actions[k].ApplyToWordSurfaceFormMorphemes(sentence, wordIndex, self.OnInnerIndexes);
pass
|