Paraphrase Generation from Latent-Variable PCFGs for Semantic Parsing
Shashi Narayan, Siva Reddy, Shay B. Cohen
School of Informatics, University of Edinburgh
INLG, September 2016
1 / 51
Paraphrase Generation from Latent-Variable PCFGs for Semantic - - PowerPoint PPT Presentation
Paraphrase Generation from Latent-Variable PCFGs for Semantic Parsing Shashi Narayan, Siva Reddy, Shay B. Cohen School of Informatics, University of Edinburgh INLG, September 2016 1 / 51 Semantic Parsing for Question Answering Semantically
1 / 51
2 / 51
2 / 51
3 / 51
language .human language target Czech m
location.country .official language.2 location.country .official language.1
type 3 / 51
language target people x e1 y e2 Czech Republic speak .arg2 speak .arg1 people .in.arg1 people .in.arg2 type type
language .human language target Czech m
location.country .official language.2 location.country .official language.1
type 4 / 51
language target people x e1 y e2 Czech Republic speak .arg2 speak .arg1 people .in.arg1 people .in.arg2 type type
language .human language target Czech m
location.country .official language.2 location.country .official language.1
type 4 / 51
language target x e1 Czech Republic language .’s.arg1 language .’s.arg2 type
language .human language target Czech m
location.country .official language.2 location.country .official language.1
type 5 / 51
people y target e1 x e1 language e1 Czech Republic speak.arg2 s p e a k . a r g 1 speak.in speak.arg1 speak.arg2 speak.in type type
6 / 51
7 / 51
8 / 51
8 / 51
8 / 51
8 / 51
9 / 51
10 / 51
11 / 51
12 / 51
12 / 51
S VP NP N dog D the
VP P him V saw
13 / 51
14 / 51
NP N D*
VP NP N D* V
S VP NP N D* V NP
15 / 51
16 / 51
= SVD Step
17 / 51
= SVD Step
17 / 51
18 / 51
19 / 51
what kind just what what exactly what what sort language linguistic do people members of the public human beings people ’s the population the citizens in Czech Republic Czech the Czech Republic Czech Cze Republic speak talking about express itself talk about to talk is speaking ?
20 / 51
20 / 51
20 / 51
21 / 51
21 / 51
what kind just what what exactly what what sort language linguistic do people members of the public human beings people ’s the population the citizens in Czech Republic Czech the Czech Republic Czech Cze Republic speak talking about express itself talk about to talk is speaking ?
22 / 51
what kind just what what exactly what what sort language linguistic do people members of the public human beings people ’s the population the citizens in Czech Republic Czech the Czech Republic Czech Cze Republic speak talking about express itself talk about to talk is speaking ?
22 / 51
23 / 51
what kind just what what exactly what what sort language linguistic do people members of the public human beings people ’s the population the citizens in Czech Republic Czech the Czech Republic Czech Cze Republic speak talking about express itself talk about to talk is speaking ?
24 / 51
24 / 51
25 / 51
SBARQ-33-403 SQ-8-925 NN-41-854 nochebuena AUX-22-300 is WHNP-7-291 NN-45-142 day WP-7-254 what SBARQ-30-403 SQ-8-709 NN-41-854 nochebuena AUX-12-300 is WRB-42-707 when SBARQ-24-403 SQ-17-709 JJ-18-579 celebrated SQ-15-931 NN-30-854 nochebuena AUX-29-300 is WRB-42-707 when 26 / 51
27 / 51
28 / 51
SBARQ-33-403 SQ-8-925 NN-41-854 nochebuena AUX-22-300 is WHNP-7-291 NN-45-142 day WP-7-254 what 29 / 51
SBARQ-33-403 SQ-8-925 NN-41-854 nochebuena AUX-22-300 is WHNP-7-291 NN-45-142 day WP-7-254 what SBARQ-30-403 SQ-8-709 NN-41-854 nochebuena AUX-12-300 is WRB-42-707 when SBARQ-24-403 SQ-17-709 JJ-18-579 celebrated SQ-15-931 NN-30-854 nochebuena AUX-29-300 is WRB-42-707 when 29 / 51
SBARQ-33-403 SQ-8-925 NN-41-854 nochebuena AUX-22-300 is WHNP-7-291 NN-45-142 day WP-7-254 what SBARQ-30-403 SQ-8-709 NN-41-854 nochebuena AUX-12-300 is WRB-42-707 when SBARQ-24-403 SQ-17-709 JJ-18-579 celebrated SQ-15-931 NN-30-854 nochebuena AUX-29-300 is WRB-42-707 when SBARQ-1-403 SQ-22-809 VBN-29-682 born SQ-21-910 NP-24-60 NNP-21-290 montez NNP-21-567 gabuella AUX-10-866 was WRB-23-103 where 29 / 51
SBARQ-33-403 SQ-8-925 NN-41-854 nochebuena AUX-22-300 is WHNP-7-291 NN-45-142 day WP-7-254 what SBARQ-30-403 SQ-8-709 NN-41-854 nochebuena AUX-12-300 is WRB-42-707 when SBARQ-24-403 SQ-17-709 JJ-18-579 celebrated SQ-15-931 NN-30-854 nochebuena AUX-29-300 is WRB-42-707 when SBARQ-1-403 SQ-22-809 VBN-29-682 born SQ-21-910 NP-24-60 NNP-21-290 montez NNP-21-567 gabuella AUX-10-866 was WRB-23-103 where
29 / 51
30 / 51
31 / 51
32 / 51
What language do people in Czech Republic speak? What is Czech Republic’s language? What language do people speak in Czech Republic? . . . 32 / 51
What language do people in Czech Republic speak? What is Czech Republic’s language? What language do people speak in Czech Republic? . . . λe.speak.arg1(e, people) ∧speak.arg2(e, language?) ∧speak.in(e, CzechRepublic)
32 / 51
What language do people in Czech Republic speak? What is Czech Republic’s language? What language do people speak in Czech Republic? . . . λe.speak.arg1(e, people) ∧speak.arg2(e, language?) ∧speak.in(e, CzechRepublic)
people y target e1 x e1 language e1 Czech Republic speak.arg2 speak.arg1 speak.in speak.arg1 s p e a k . a r g 2 speak.in type type
32 / 51
32 / 51
32 / 51
33 / 51
34 / 51
35 / 51
36 / 51
36 / 51
37 / 51
37 / 51
38 / 51
39 / 51
40 / 51
41 / 51
42 / 51
43 / 51
44 / 51
45 / 51
46 / 51
47 / 51
48 / 51
49 / 51
50 / 51
51 / 51