alexpap commited on
Commit
b735079
1 Parent(s): 9ca293b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -2
app.py CHANGED
@@ -6,5 +6,39 @@ st.sidebar.title('Navigation')
6
  menu = st.sidebar.radio("", options=["Introduction", "Parsing NLU data into SQuAD 2.0", "Generating Questions", "Training",
7
  "Evaluation"], index=0)
8
 
9
- x = st.slider('Select a value')
10
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  menu = st.sidebar.radio("", options=["Introduction", "Parsing NLU data into SQuAD 2.0", "Generating Questions", "Training",
7
  "Evaluation"], index=0)
8
 
9
+ st.markdown('''
10
+
11
+ ## Question Answering NLU
12
+
13
+ Question Answering NLU (QANLU) is an approach that maps the NLU task into question answering,
14
+ leveraging pre-trained question-answering models to perform well on few-shot settings. Instead of
15
+ training an intent classifier or a slot tagger, for example, we can ask the model intent- and
16
+ slot-related questions in natural language:
17
+
18
+ ```
19
+ Context : I'm looking for a cheap flight to Boston.
20
+
21
+ Question: Is the user looking to book a flight?
22
+ Answer : Yes
23
+
24
+ Question: Is the user asking about departure time?
25
+ Answer : No
26
+
27
+ Question: What price is the user looking for?
28
+ Answer : cheap
29
+
30
+ Question: Where is the user flying from?
31
+ Answer : (empty)
32
+ ```
33
+
34
+ Thus, by asking questions for each intent and slot in natural language, we can effectively construct an NLU hypothesis. For more details,
35
+ please read the paper:
36
+ [Language model is all you need: Natural language understanding as question answering](https://assets.amazon.science/33/ea/800419b24a09876601d8ab99bfb9/language-model-is-all-you-need-natural-language-understanding-as-question-answering.pdf).
37
+
38
+ In this Space, we will see how to transform [MATIS++](https://github.com/amazon-research/multiatis)
39
+ NLU data (e.g. utterances and intent / slot annotations) into [SQuAD 2.0 format](https://rajpurkar.github.io/SQuAD-explorer/explore/v2.0/dev/)
40
+ question-answering data that can be used by QANLU. MATIS++ includes
41
+ the original English version of ATIS and a translation into eight languages: German, Spanish, French,
42
+ Japanese, Hindi, Portuguese, Turkish, and Chinese.
43
+
44
+ ''')