alexpap commited on
Commit
6ea6216
·
1 Parent(s): cd270a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -13
app.py CHANGED
@@ -51,15 +51,7 @@ 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
- 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
 
@@ -82,13 +74,31 @@ elif menu == "Parsing NLU data into SQuAD 2.0":
82
  ''')
83
 
84
  dataset = st.text_input(
85
- 'Please enter the context:',
86
- value="I want a cheap flight to Boston."
 
 
 
 
 
87
  )
88
 
89
  questions = st.text_input(
90
- 'Please enter the question:',
91
- value="What is the destination?"
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  )
93
 
94
 
 
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
 
 
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