root 1 week ago
parent
commit
280630d683

BIN
ai-slibra-assistant/data/location.xlsx


+ 45 - 27
ai-slibra-assistant/data/robot.json

@@ -164,7 +164,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -278,7 +279,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -305,7 +306,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -657,7 +659,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -771,7 +774,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -798,7 +801,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -1188,7 +1192,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -1302,7 +1307,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -1329,7 +1334,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -1805,7 +1811,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -1919,7 +1926,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -1946,7 +1953,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -2257,7 +2265,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -2371,7 +2380,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -2398,7 +2407,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -2787,7 +2797,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -2901,7 +2912,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -2928,7 +2939,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -3295,7 +3307,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -3409,7 +3422,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -3436,7 +3449,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -3655,7 +3669,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -3769,7 +3784,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -3796,7 +3811,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"
@@ -4180,7 +4196,8 @@
                         "水公告查询",
                         "水管号查询",
                         "流水公告查询",
-                        "水水公告查询"
+                        "水水公告查询",
+                        "水水水公告查询"
                     ],
                     "next": "2.00",
                     "title": "停水咨询"
@@ -4294,7 +4311,7 @@
                 {
                     "commonReply": [
                         "漏水报修",
-                        " 报修",
+                        "报修",
                         "冒水了",
                         "漏水了",
                         "水表漏水",
@@ -4321,7 +4338,8 @@
                         "我家楼上跑水了我家跑水了",
                         "报水报修",
                         "水报修",
-                        "用水报修"
+                        "用水报修",
+                        "停水报修"
                     ],
                     "next": "99.00",
                     "title": "漏水报修"

+ 1 - 1
ai-slibra-assistant/util/utils.py

@@ -248,7 +248,7 @@ def norm_community(asr):
         term = "|".join([term[0] for term in pinyin(word, style=Style.NORMAL)])
         if term in user_dict['pinyin']:
             return user_dict['pinyin'][term]
-    for r in range(1, len(words) + 1):
+    for r in range(1, min(len(words) + 1, 6)):
         combinations_list = list(itertools.combinations(words, r))
         features = [executor.submit(match_loc, combo) for combo in combinations_list]
         result =[feature.result() for feature in as_completed(features)]