コード例 #1
0
def GetAllExtractorsInst():
    if not hasattr(GetAllExtractorsInst, "_all_extractor_instances"):
        GetAllExtractorsInst._all_extractor_instances = [
            action_extractor.ActionExtractor(),
            general_text_extractor.GeneralTextExtractor(),
            how_are_you_extractor.HowAreYouExtractor(),
            name_extractor.NameExtractor(),
            number_extractor.NumberExtractor(),
            quiz_extractor.QuizExtractor(),
            user_question_extractor.UserQuestionExtractor(),
            yes_no_extractor.YesNoExtractor(),
            yes_no_extractor.DontKnowExtractor(),
            yes_no_extractor.SayAgainExtractor(),
        ]
    return GetAllExtractorsInst._all_extractor_instances
コード例 #2
0
 def setUp(self):
     FLAGS(sys.argv)
     self._number_extractor = number_extractor.NumberExtractor()
     self._name_extractor = name_extractor.NameExtractor()
     self._combined_extractor = combined_extractor.CombinedExtractor(
         self._number_extractor, self._name_extractor)
コード例 #3
0
 def setUp(self):
     self._action_extractor = action_extractor.ActionExtractor()
     self._name_extractor = name_extractor.NameExtractor()
コード例 #4
0
 def setUp(self):
     self._number_extractor = number_extractor.NumberExtractor()
     self._name_extractor = name_extractor.NameExtractor()
     self._extractor = combined_extractor.CombinedExtractor(
         self._number_extractor, self._name_extractor)
コード例 #5
0
 def setUp(self):
     self._extractor = name_extractor.NameExtractor()