Automating reading comprehension by generating question and answer pairs
Vishwajeet Kumar 1 Kireeti Boorla 2 Ganesh Ramakrishnan 2 Yuan-Fang Li 3
1IITB-Monash Research Academy, India 2IIT Bombay, India 3Monash University, Australia
Automating reading comprehension by generating question and answer - - PowerPoint PPT Presentation
1 IITB-Monash Research Academy, India 2 IIT Bombay, India 3 Monash University, Australia Automating reading comprehension by generating question and answer pairs Vishwajeet Kumar 1 Kireeti Boorla 2 Ganesh Ramakrishnan 2 Yuan-Fang Li 3 A system to
1IITB-Monash Research Academy, India 2IIT Bombay, India 3Monash University, Australia
1
2
2
2
3
3
3
4
5
5
5
6
6
6
7
7
7
7
7
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder Donald Trump is the Current President of United States of America. Donald Trump Who is the current president of United States
0.3 0.4 0.5 0.6 0.8 0.7 0.9 0.1 ... .. ..
Thought Vector for the sentence
8
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
1, hs 2, ..., hs n).
mean
n hs mean
n is final state
mean is the mean of all activations
mean is mean of activations in NE span (hs i , ..., hs j ) aMost relevant answer to ask question about
9
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
1, hs 2, ..., hs n).
mean >,
n hs mean
n is final state
mean is the mean of all activations
mean is mean of activations in NE span (hs i , ..., hs j ) aMost relevant answer to ask question about
9
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
1, hs 2, ..., hs n).
mean >,
n; hs mean; > to get probability
n is final state
mean is the mean of all activations
mean is mean of activations in NE span (hs i , ..., hs j ) aMost relevant answer to ask question about
9
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
1, hs 2, ..., hs n).
mean >,
n; hs mean; > to get probability
n is final state
mean is the mean of all activations
mean is mean of activations in NE span (hs i , ..., hs j ) aMost relevant answer to ask question about
9
Answer Selection Named Entity Selection Pointer network Answer and Features Encoding Question Decoder Sentence Encoder
10
Answer Selection Named Entity Selection Pointer network Answer and Features Encoding Question Decoder Sentence Encoder
10
Donald Trump| NNP| PERSON|nsubj is| VBZ| O| cop the| DT| O| det President| NNP| O| root .| .| O| punct ?| .| O| punct Donald Trump| NNP| PERSON|nsubj Who| WP| O| root is| VBZ| O| cop
11
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
12
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
12
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
12
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
1
1
13
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
13
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
13
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
14
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
14
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
14
Answer Selection Named Entity Selection Pointer Network Answer and Features Encoding Question Decoder Sentence Encoder
14
i
iat ihi
T t
15
i = vttanh(Wehhi + Wshst + batt)
iat ihi
T t
15
i = vttanh(Wehhi + Wshst + batt)
iat ihi
T t
15
i = vttanh(Wehhi + Wshst + batt)
t = Σiat ihi
T t
15
i = vttanh(Wehhi + Wshst + batt)
t = Σiat ihi
t ] + bv)
T t
15
i = vttanh(Wehhi + Wshst + batt)
t = Σiat ihi
t ] + bv)
t=0 − log Pvocab(wordt)
15
16
17
18
19
19
20
21