Esempio n. 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
Esempio n. 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
Esempio n. 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