Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,39 @@ elif menu == "Parsing NLU data into SQuAD 2.0":
|
|
50 |
NLU data (e.g. utterances and intent / slot annotations) into [SQuAD 2.0 format](https://rajpurkar.github.io/SQuAD-explorer/explore/v2.0/dev/)
|
51 |
question-answering data that can be used by QANLU.
|
52 |
|
53 |
-
Here is an example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
''')
|
55 |
|
|
|
|
|
56 |
|
57 |
elif menu == "Evaluation":
|
58 |
st.header('QANLU Evaluation')
|
|
|
50 |
NLU data (e.g. utterances and intent / slot annotations) into [SQuAD 2.0 format](https://rajpurkar.github.io/SQuAD-explorer/explore/v2.0/dev/)
|
51 |
question-answering data that can be used by QANLU.
|
52 |
|
53 |
+
Here is an example dataset with three intents and two examples per intent:
|
54 |
+
|
55 |
+
````
|
56 |
+
restaurant, I am looking for some Vietnamese food
|
57 |
+
restaurant, What is there to eat around here?
|
58 |
+
music, Play my workout playlist
|
59 |
+
music, Can you find Bob Dylan songs?
|
60 |
+
flight, Show me flights from Oakland to Dallas
|
61 |
+
flight, I want two economy tickets from Miami to Chicago
|
62 |
+
````
|
63 |
+
|
64 |
+
Now, we need to define some questions, per intent. We can use free-form questions or use templates.
|
65 |
+
|
66 |
+
````
|
67 |
+
{
|
68 |
+
'restaurant': [
|
69 |
+
'Did they ask for a restaurant?',
|
70 |
+
'Did they mention a restaurant?'
|
71 |
+
],
|
72 |
+
'music': [
|
73 |
+
'Did they ask for music?',
|
74 |
+
'Do they want to play music?'
|
75 |
+
],
|
76 |
+
'flight': [
|
77 |
+
'Did they ask for a flight?',
|
78 |
+
'Do they want to book a flight?'
|
79 |
+
]
|
80 |
+
}
|
81 |
+
````
|
82 |
''')
|
83 |
|
84 |
+
from atis import *
|
85 |
+
|
86 |
|
87 |
elif menu == "Evaluation":
|
88 |
st.header('QANLU Evaluation')
|