Package miopia :: Package analyzer :: Module NegationInfo
[hide private]
[frames] | no frames]

Source Code for Module miopia.analyzer.NegationInfo

 1  ''' 
 2  @author: David Vilares 
 3  ''' 
 4   
5 -class NegationInfo(object):
6 ''' 7 Auxiliary structure for analyzing negation 8 ''' 9 10
11 - def __init__(self,neg_branches,other_branches,delimiter):
12 """ 13 Constructor 14 @param neg_branches: Branches affected by a negation term 15 @param other_branches: Branches not affected by a negation term 16 @param delimiter: A syntactic rule delimiter. An element of L{Negationrules} 17 """ 18 self.__neg_branches = neg_branches 19 self.__other_branches = other_branches 20 self.__delimiter = delimiter
21
22 - def get_neg_branches(self):
23 return self.__neg_branches
24
25 - def get_other_branches(self):
26 return self.__other_branches
27
28 - def get_delimiter(self):
29 return self.__delimiter
30