Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
•
ee60b4d
1
Parent(s):
0e3afb5
Update nlu keyword tests
Browse files- scripts/make_request.py +28 -17
- users.json +1 -1
scripts/make_request.py
CHANGED
@@ -64,21 +64,32 @@ def run_simulated_request(endpoint, sample_answer, context=None):
|
|
64 |
|
65 |
# run_simulated_request('intent-classification', 'exit')
|
66 |
# run_simulated_request('intent-classification', "I'm not sure")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
# run_simulated_request('sentiment-analysis', 'I reject it')
|
68 |
# run_simulated_request('text2int', 'seven thousand nine hundred fifty seven')
|
69 |
-
run_simulated_request('nlu', 'test message')
|
70 |
-
run_simulated_request('nlu', 'eight')
|
71 |
-
run_simulated_request('nlu', 'is it 8')
|
72 |
-
run_simulated_request('nlu', 'can I know how its 0.5')
|
73 |
-
run_simulated_request('nlu', 'eight, nine, ten')
|
74 |
-
run_simulated_request('nlu', '8, 9, 10')
|
75 |
-
run_simulated_request('nlu', '8')
|
76 |
-
run_simulated_request('nlu', "I don't know")
|
77 |
-
run_simulated_request('nlu', "I don't know eight")
|
78 |
-
run_simulated_request('nlu', "I don't 9")
|
79 |
-
run_simulated_request('nlu', "0.2")
|
80 |
-
run_simulated_request('nlu', 'Today is a wonderful day')
|
81 |
-
run_simulated_request('nlu', 'IDK 5?')
|
82 |
# run_simulated_request('manager', '')
|
83 |
# run_simulated_request('manager', 'add')
|
84 |
# run_simulated_request('manager', 'subtract')
|
@@ -103,10 +114,10 @@ run_simulated_request('nlu', 'IDK 5?')
|
|
103 |
# })
|
104 |
# Need to start with this command to populate users.json
|
105 |
# If users.json is not already made
|
106 |
-
run_simulated_request("num_one", {
|
107 |
-
|
108 |
-
|
109 |
-
})
|
110 |
# run_simulated_request("num_one", {
|
111 |
# "user_id": "1",
|
112 |
# "message_text": "61",
|
|
|
64 |
|
65 |
# run_simulated_request('intent-classification', 'exit')
|
66 |
# run_simulated_request('intent-classification', "I'm not sure")
|
67 |
+
run_simulated_request('intent-classification', "easier")
|
68 |
+
run_simulated_request('intent-classification', "easy")
|
69 |
+
run_simulated_request('intent-classification', "harder")
|
70 |
+
run_simulated_request('intent-classification', "hard")
|
71 |
+
run_simulated_request('intent-classification', "hint")
|
72 |
+
run_simulated_request('intent-classification', "hin")
|
73 |
+
run_simulated_request('intent-classification', "hnt")
|
74 |
+
run_simulated_request('intent-classification', "stop")
|
75 |
+
run_simulated_request('intent-classification', "stp")
|
76 |
+
run_simulated_request('intent-classification', "sop")
|
77 |
+
run_simulated_request('intent-classification', "please stop")
|
78 |
# run_simulated_request('sentiment-analysis', 'I reject it')
|
79 |
# run_simulated_request('text2int', 'seven thousand nine hundred fifty seven')
|
80 |
+
# run_simulated_request('nlu', 'test message')
|
81 |
+
# run_simulated_request('nlu', 'eight')
|
82 |
+
# run_simulated_request('nlu', 'is it 8')
|
83 |
+
# run_simulated_request('nlu', 'can I know how its 0.5')
|
84 |
+
# run_simulated_request('nlu', 'eight, nine, ten')
|
85 |
+
# run_simulated_request('nlu', '8, 9, 10')
|
86 |
+
# run_simulated_request('nlu', '8')
|
87 |
+
# run_simulated_request('nlu', "I don't know")
|
88 |
+
# run_simulated_request('nlu', "I don't know eight")
|
89 |
+
# run_simulated_request('nlu', "I don't 9")
|
90 |
+
# run_simulated_request('nlu', "0.2")
|
91 |
+
# run_simulated_request('nlu', 'Today is a wonderful day')
|
92 |
+
# run_simulated_request('nlu', 'IDK 5?')
|
93 |
# run_simulated_request('manager', '')
|
94 |
# run_simulated_request('manager', 'add')
|
95 |
# run_simulated_request('manager', 'subtract')
|
|
|
114 |
# })
|
115 |
# Need to start with this command to populate users.json
|
116 |
# If users.json is not already made
|
117 |
+
# run_simulated_request("num_one", {
|
118 |
+
# "user_id": "1",
|
119 |
+
# "message_text": "",
|
120 |
+
# })
|
121 |
# run_simulated_request("num_one", {
|
122 |
# "user_id": "1",
|
123 |
# "message_text": "61",
|
users.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"1": {"skill_score": 0.
|
|
|
1 |
+
{"1": {"skill_score": 0.04, "state": "question", "start": 1, "stop": 1, "step": 1, "answer": 2}}
|