Пример #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, re.I):
         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, re.I):
         if committee not in committees:
             committees.append(committee)
     return attrs