Exemplo 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, re.I):
         if committee not in committees:
             committees.append(committee)
     return attrs
Exemplo n.º 2
0
 def categorize(self, text):
     '''Wrap categorize and add boilerplate committees.
     '''
     attrs = BaseCategorizer.categorize(self, text)
     if 'committees' in attrs:
         committees = attrs['committees']
         for committee in re.findall(committees_rgx, text, re.I):
             if committee not in committees:
                 committees.append(committee)
     return attrs
Exemplo n.º 3
0
 def categorize(self, text):
     '''Wrap categorize and add boilerplate committees.
     '''
     attrs = BaseCategorizer.categorize(self, text)
     if 'committees' in attrs:
         committees = attrs['committees']
         for committee in re.findall(committees_rgx, text, re.I):
             if committee not in committees:
                 committees.append(committee)
     return attrs