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
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)
def setUp(self): self._action_extractor = action_extractor.ActionExtractor() self._name_extractor = name_extractor.NameExtractor()
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)
def setUp(self): self._extractor = name_extractor.NameExtractor()