Package miopia :: Package tagger :: Module InfoTag
[hide private]
[frames] | no frames]

Source Code for Module miopia.tagger.InfoTag

 1  ''' 
 2  @author: David Vilares Calvo 
 3  ''' 
 4   
5 -class InfoTag(object):
6 7 """ 8 Auxiliary structure for saving information of a word tag 9 """ 10
11 - def __init__(self,cpostag,postag,feats):
12 """ 13 Constructor 14 """ 15 self.__cpostag = cpostag 16 self.__postag = postag 17 self.__feats = feats
18
19 - def get_cpostag(self):
20 return self.__cpostag
21
22 - def get_postag(self):
23 return self.__postag
24
25 - def get_feats(self):
26 return self.__feats
27
28 - def __str__(self):
29 return self.__cpostag+" "+self.__postag+" "+self.__feats
30