|
@@ -153,6 +153,8 @@ CREATE TABLE botrecords (
|
|
|
answers = res.get("answer")
|
|
|
intent = ''
|
|
|
codes = [i for i in map(lambda x: x.get("code"), answers)]
|
|
|
+ if len(answers)==0:
|
|
|
+ intent = "用户未说话"
|
|
|
if "1.20" in codes or "1.10" in codes or "1.00" in codes or "1.30" in codes:
|
|
|
for answer in answers:
|
|
|
if answer.get("code") in ["1.20", "1.10", "1.00", "1.30", "98.00"]:
|
|
@@ -169,7 +171,7 @@ CREATE TABLE botrecords (
|
|
|
intent =opt[-1].get("title", '')
|
|
|
if intent in ["未听清", "打招呼", "准备结束"]:
|
|
|
intent = "未知意图"
|
|
|
- if intent == "":
|
|
|
+ if intent in ["", " "]:
|
|
|
intent = "用户未说话"
|
|
|
if code in ["98.00", "1.30"] and intent=="others":
|
|
|
intent = "未知意图"
|