예제 #1
0
 def categorize(self, text):
     '''Wrap categorize and add boilerplate committees.
     '''
     attrs = BaseCategorizer.categorize(self, text)
     committees = attrs['committees']
     for committee in re.findall(committees_rgx, text):
         if committee not in committees:
             committees.append(committee)
     return attrs
예제 #2
0
 def categorize(self, text):
     '''Wrap categorize and add boilerplate committees.
     '''
     attrs = BaseCategorizer.categorize(self, text)
     committees = attrs['committees']
     for committee in re.findall(committees_rgx, text):
         if committee not in committees:
             committees.append(committee)
     return attrs
예제 #3
0
 def categorize(self, text):
     """Wrap categorize and add boilerplate committees.
     """
     attrs = BaseCategorizer.categorize(self, text)
     committees = attrs["committees"]
     for committee in re.findall(committees_rgx, text, re.I):
         if committee not in committees:
             committees.append(committee)
     return attrs