Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,15 @@ elif menu == "Parsing NLU data into SQuAD 2.0":
|
|
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 |
Now, we need to define some questions, per intent. We can use free-form questions or use templates.
|
57 |
|
@@ -73,34 +81,6 @@ elif menu == "Parsing NLU data into SQuAD 2.0":
|
|
73 |
````
|
74 |
''')
|
75 |
|
76 |
-
dataset = st.text_input(
|
77 |
-
'Here is an example dataset with three intents and two examples per intent:',
|
78 |
-
value="restaurant, I am looking for some Vietnamese food"
|
79 |
-
"restaurant, What is there to eat around here?"
|
80 |
-
"music, Play my workout playlist"
|
81 |
-
"music, Can you find Bob Dylan songs?"
|
82 |
-
"flight, Show me flights from Oakland to Dallas"
|
83 |
-
"flight, I want two economy tickets from Miami to Chicago"
|
84 |
-
)
|
85 |
-
|
86 |
-
questions = st.text_input(
|
87 |
-
'Now, we need to define some questions, per intent. We can use free-form questions or use templates.',
|
88 |
-
value="{"
|
89 |
-
"'restaurant': ["
|
90 |
-
" 'Did they ask for a restaurant?',"
|
91 |
-
" 'Did they mention a restaurant?'"
|
92 |
-
"],"
|
93 |
-
"'music': ["
|
94 |
-
" 'Did they ask for music?',"
|
95 |
-
" 'Do they want to play music?'"
|
96 |
-
"],"
|
97 |
-
"'flight': ["
|
98 |
-
" 'Did they ask for a flight?',"
|
99 |
-
" 'Do they want to book a flight?'"
|
100 |
-
"]"
|
101 |
-
"}"
|
102 |
-
)
|
103 |
-
|
104 |
|
105 |
elif menu == "Evaluation":
|
106 |
st.header('QANLU Evaluation')
|
|
|
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 |
|
|
|
81 |
````
|
82 |
''')
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
elif menu == "Evaluation":
|
86 |
st.header('QANLU Evaluation')
|