alexpap commited on
Commit
9158fc8
1 Parent(s): 5f807c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -32
app.py CHANGED
@@ -12,38 +12,47 @@ if menu == "Introduction":
12
 
13
  st.markdown('''
14
 
15
- Question Answering NLU (QANLU) is an approach that maps the NLU task into question answering,
16
- leveraging pre-trained question-answering models to perform well on few-shot settings. Instead of
17
- training an intent classifier or a slot tagger, for example, we can ask the model intent- and
18
- slot-related questions in natural language:
19
-
20
- ```
21
- Context : I'm looking for a cheap flight to Boston.
22
-
23
- Question: Is the user looking to book a flight?
24
- Answer : Yes
25
-
26
- Question: Is the user asking about departure time?
27
- Answer : No
28
-
29
- Question: What price is the user looking for?
30
- Answer : cheap
31
-
32
- Question: Where is the user flying from?
33
- Answer : (empty)
34
- ```
35
-
36
- Thus, by asking questions for each intent and slot in natural language, we can effectively construct an NLU hypothesis. For more details,
37
- please read the paper:
38
- [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).
39
-
40
- In this Space, we will see how to transform [MATIS++](https://github.com/amazon-research/multiatis)
41
- NLU data (e.g. utterances and intent / slot annotations) into [SQuAD 2.0 format](https://rajpurkar.github.io/SQuAD-explorer/explore/v2.0/dev/)
42
- question-answering data that can be used by QANLU. MATIS++ includes
43
- the original English version of ATIS and a translation into eight languages: German, Spanish, French,
44
- Japanese, Hindi, Portuguese, Turkish, and Chinese.
45
-
46
- ''')
 
 
 
 
 
 
 
 
 
47
 
48
  elif menu == "Evaluation":
49
  st.header('QANLU Evaluation')
 
12
 
13
  st.markdown('''
14
 
15
+ Question Answering NLU (QANLU) is an approach that maps the NLU task into question answering,
16
+ leveraging pre-trained question-answering models to perform well on few-shot settings. Instead of
17
+ training an intent classifier or a slot tagger, for example, we can ask the model intent- and
18
+ slot-related questions in natural language:
19
+
20
+ ```
21
+ Context : I'm looking for a cheap flight to Boston.
22
+
23
+ Question: Is the user looking to book a flight?
24
+ Answer : Yes
25
+
26
+ Question: Is the user asking about departure time?
27
+ Answer : No
28
+
29
+ Question: What price is the user looking for?
30
+ Answer : cheap
31
+
32
+ Question: Where is the user flying from?
33
+ Answer : (empty)
34
+ ```
35
+
36
+ Thus, by asking questions for each intent and slot in natural language, we can effectively construct an NLU hypothesis. For more details,
37
+ please read the paper:
38
+ [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).
39
+
40
+ In this Space, we will see how to transform an example
41
+ NLU dataset (e.g. utterances and intent / slot annotations) into [SQuAD 2.0 format](https://rajpurkar.github.io/SQuAD-explorer/explore/v2.0/dev/)
42
+ question-answering data that can be used by QANLU.
43
+
44
+ ''')
45
+
46
+ elif menu == "Parsing NLU data into SQuAD 2.0":
47
+ st.markdown('''
48
+ Here, we show a small example of how NLU data can be transformed into QANLU data.
49
+ The same method can be used to transform [MATIS++](https://github.com/amazon-research/multiatis)
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')