fix: is_any_quesiton function fix
@@ -349,13 +349,13 @@ def tell_me_more(annotated_uttr):
QUESTION_BEGINNINGS = QUESTION_LIKE + [
r"what'?s?", "when", "where", "which", r"who'?s?", "whom", "whose", r"how'?s?", "why", "whether",
- "do (i|we|you)", "does (it|he|she)", "have (i|we|you)", "has (it|he|she)",
- "can (i|it|we|you)", "could (i|it|we|you)", "shall (i|we|you)", "should (i|it|we|you)",
- "will (i|it|we|you)", "would (i|it|we|you)", "might (i|it|we|you)", "must (i|it|we|you)",
+ "do (i|we|you|they)", "does (it|he|she)", "have (i|we|you|they)", "has (it|he|she)",
+ "can (i|it|we|you|they)", "could (i|it|we|you|they)", "shall (i|we|you|they)", "should (i|it|we|you|they)",
+ "will (i|it|we|you|they)", "would (i|it|we|you|they)", "might (i|it|we|you|they)", "must (i|it|we|you|they)",
"tell me"
]
-QUESTION_BEGINNINGS_PATTERN = re.compile(r"^" + join_words_in_or_pattern(QUESTION_BEGINNINGS), re.IGNORECASE)
+QUESTION_BEGINNINGS_PATTERN = re.compile(r"^(but )?" + join_words_in_or_pattern(QUESTION_BEGINNINGS), re.IGNORECASE)
def is_any_question_sentence_in_utterance(annotated_uttr):
