def __init__(self, intent_name_to_lcs_templates_map, lcs_threshold=0.7): # intent_name_type_to_lcs_templates_map is something like # {"want_selfie": ["I want a selfie"]} super(SimpleLcsExtractor, self).__init__() self._intent_to_templates = intent_name_to_lcs_templates_map self._lcs_matcher = lcs_matcher.LcsMatcher() self._lcs_threshold = lcs_threshold
def __init__(self): super(UserQuestionExtractor, self).__init__() self._lcs_matcher = lcs_matcher.LcsMatcher()
def __init__(self): super(NumberExtractor, self).__init__() self._lcs_matcher = lcs_matcher.LcsMatcher()
def __init__(self): super(QuizExtractor, self).__init__() self._all_quiz = all_quiz.GetAllQuiz() self._lcs_matcher = lcs_matcher.LcsMatcher()
def __init__(self): super(HowAreYouExtractor, self).__init__() self._lcs_matcher = lcs_matcher.LcsMatcher()
def __init__(self): super(TourExtractor, self).__init__() self._all_tour_points = tour_info.GetAllTourPoints() self._lcs_matcher = lcs_matcher.LcsMatcher()