Presentation is loading. Please wait.

Presentation is loading. Please wait.

Semantic Parsing based on Propositional Representations Fernandez, Sopena, Padró.

Similar presentations


Presentation on theme: "Semantic Parsing based on Propositional Representations Fernandez, Sopena, Padró."— Presentation transcript:

1 Semantic Parsing based on Propositional Representations Fernandez, Sopena, Padró

2 Resumen – Objetivos – Estructura Proposicional – Arquitectura M1 M2 –Ejemplos Canónico PP-Attachment Generalized Role Labeling using Propositional Representations

3 Objetivos Crear un analizador semántico mediante la implementación de un modelo psicológico plausible que: –Lleva a cabo un mapeo directo i sencillo de las frases a su estructura proposicional –No utiliza analizadores sintácticos ni estructura sintactica intermedia Obtener buenos resultados en textos reales (PTB)

4 Generalized Role Labeling using Propositional Representations Estructura proposicional –Predicado + 3 Argumentos Frase canónica: “The man sold some offerings to the british tourist” Pred:sold Arg1:the man Arg2:some offerings Arg3:the british tourist –Composición de proposiciones “The man sold some offerings to the british tourist in Barcelona” (P1) Pred:sold Arg1:the man Arg2:some offerings Arg3:the british tourist (P2) Pred: Arg1:P1 Arg2:in Barcelona Arg3:

5 Generalized Role Labeling using Propositional Representations

6 Estructura proposicional –Argumentos temáticos generalizados (VanValin) A1-ACTOR (agent, perceiver,....) A2-UNDERGOER (theme, patient,... ) A3-OTHERS (benefactive, goal, location, source, destination,...) –Mapping fácil con FrameNet i otros Arg1 i arg2 son los dos primeros argumentos core Arg3, argumentos core que se identifican por la preposición que los marca.

7 Arquitectura Modulo1 - Estructural/Sintáctico –Lleva a cabo el mapeo directo de las palabras a la proposición –Modifica la proposición –Sin información semántica explicita Modulo2 - Semántico –Acepta o rechaza las decisiones estructurales del primer modulo. »Consistencia con el verbo (+/-Subcategorization Frames) »PP-Attachment »Coordinacion »Relativo Generalized Role Labeling using Propositional Representations

8 Ventajas Complejidad lineal Fácil tratamiento de fenómenos sintácticos ‘difíciles’: –Coordinación y puntuación. –Word order –Non local dependencies. No se necesita corpus sintáctico etiquetado.

9 Arquitectura –Modulo1 Input WordSlot 0 Slot 1 Slot 2 Slot 3 Type S Back, Test & Subcat. STACK Stored Context Current Context MODULE 1 Parser Commands

10 Input WordSlot 0 Slot 1 Slot 2 Slot 3 Type S Back, Test & Subcat. Current Context MODULE 2 Verbo|ARGAdjunto|~AdjuntoCoordinable|~CoordinableArg1|Arg2

11 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 PUT1

12 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president The | DT PUT1

13 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president The | DT DT(The)

14 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president man | DT_N DT(The) PUT1

15 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president DT(The) DT_N(man) man | DT_N

16 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president sold | V_MA PUT0 DT(The) DT_N(man)

17 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president DT(The) DT_N(man) sold | V_MA V_MA(sold)

18 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president some | DT PUT2 DT(The) DT_N(man) V_MA(sold)

19 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president V_MA(sold) some | DT DT(The) DT_N(man)DT(some)

20 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 Flags Modul1Modul2 The man sold some offerings to the president offerings | DT_N PUT2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some)

21 Flags Modul1Modul2 The man sold some offerings to the president offerings | DT_N Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)

22 Flags Modul1Modul2 The man sold some offerings to the president to | IIN_DT PUT3 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)

23 Flags Modul1Modul2 The man sold some offerings to the president to | IIN_DT Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)to(IIN_DT)

24 Flags Modul1Modul2 The man sold some offerings to the president the | DT PUT1 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)to(IIN_DT)

25 Flags Modul1Modul2 The man sold some offerings to the president the | DT Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)to(IIN_DT) the(DT)

26 Flags Modul1Modul2 The man sold some offerings to the president president | DT_N PUT1 Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)to(IIN_DT) the(DT)

27 Flags Modul1Modul2 The man sold some offerings to the president president | DT_N Slot 3 Slot 0 Slot 1Slot 2 Slot 3 V_MA(sold)DT(The) DT_N(man)DT(some) DT_N(offerings)to(IIN_DT) the(DT) president(DT_N)

28 Generalized Role Labeling using Propositional Representations Un ejemplo no tan sencillo: “The main manager bought some old cars with three wheels.”

29 Generalized Role Labeling using Propositional Representations Current Pred: A1: A2: A3: Flags: Input Word: The| DT M1: PUT1 M2: The main manager bought some old cars with three wheels.

30 Generalized Role Labeling using Propositional Representations Current Pred: A1: The A2: A3: Input Word: The| DT M1: NEXT M2: The main manager bought some old cars with three wheels.

31 Generalized Role Labeling using Propositional Representations Current Pred: A1: The A2: Input Word: main | JJ_PR M1: *IZ-IN M2: The main manager bought some old cars with three wheels.

32 Generalized Role Labeling using Propositional Representations Current Pred: A1: A2: A3: Flags: Input Word: main| JJ_PR M1: PUT0 M2: The main manager bought some old cars with three wheels. Top Pred: A1: The A2: A3:

33 Generalized Role Labeling using Propositional Representations Current Pred: main A1: A2: A3: Flags: Input Word: main| JJ_PR M1: NEXT M2: The main manager bought some old cars with three wheels. Top Pred: A1: The A2: A3:

34 Generalized Role Labeling using Propositional Representations Input Word: manager| DT_N M1: PUT1 M2: The main manager bought some old cars with three wheels. Current Pred: main A1: A2: A3: Top Pred: A1: The A2: A3:

35 Generalized Role Labeling using Propositional Representations Input Word: manager| DT_N M1: OZ-OUT M2: The main manager bought some old cars with three wheels. Current Pred: main A1: manager A2: A3: Top Pred: A1: The A2: A3:

36 Generalized Role Labeling using Propositional Representations Input Word: manager| DT_N M1: PUT1 M2: The main manager bought some old cars with three wheels. Current Pred: A1: The A2: P:main|A1:manager

37 Generalized Role Labeling using Propositional Representations Input Word: manager| DT_N M1: NEXT M2: The main manager bought some old cars with three wheels. Current Pred: A1: The manager A2: P:main|A1:manager

38 Generalized Role Labeling using Propositional Representations Input Word: bought| V_MA M1: PUT0 M2: The main manager bought some old cars with three wheels. Current Pred: A1: The manager A2: P:main|A1:manager

39 Generalized Role Labeling using Propositional Representations Input Word: bought| V_MA M1: NEXT M2: The main manager bought some old cars with three wheels. Current Pred: bought A1: The manager A2: A3: P:main|A1:manager

40 Generalized Role Labeling using Propositional Representations Input Word: some| DT M1: PUT2 M2: The main manager bought some old cars with three wheels. Current Pred: bought A1: The manager A2: P:main|A1:manager

41 Generalized Role Labeling using Propositional Representations Input Word: some| DT M1: NEXT M2: The main manager bought some old cars with three wheels. Current Pred: bought A1: The manager A2: some A3: P:main|A1:manager

42 Generalized Role Labeling using Propositional Representations Input Word: old| JJ_PR M1: *IZ-IN M2: The main manager bought some old cars with three wheels. Current Pred: bought A1: The manager A2: some P:main|A1:manager

43 Generalized Role Labeling using Propositional Representations Input Word: old| JJ_PR M1: PUT0 M2: The main manager bought some old cars with three wheels. Current Pred: A1: A2: A3: P:main|A1:manager Top Pred: bought A1: The manager A2: some A3:

44 Generalized Role Labeling using Propositional Representations Input Word: old| JJ_PR M1: NEXT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: old A1: A2: Top Pred: bought A1: The manager A2: some A3:

45 Generalized Role Labeling using Propositional Representations Input Word: cars | DT_N M1: PUT1 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: old A1: A2: @0 Top Pred: bought A1: The manager A2: some A3:

46 Generalized Role Labeling using Propositional Representations Input Word: cars | DT_N M1: OZ-OUT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: old A1: cars A2: @1 Top Pred: bought A1: The manager A2: some A3:

47 Generalized Role Labeling using Propositional Representations Input Word: cars | DT_N M1: PUT2 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: bought A1: The manager A2: some A3: P:old|A1:cars

48 Generalized Role Labeling using Propositional Representations Input Word: cars | DT_N M1: NEXT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: bought A1: The manager A2: some cars A3: P:old|A1:cars

49 Generalized Role Labeling using Propositional Representations Input Word: with | IIN_DT M1: IZ-IN1 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: bought A1: The manager A2: some cars P:old|A1:cars

50 Generalized Role Labeling using Propositional Representations Input Word: with | IIN_DT M1: PUT2 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: cars A2: A3: P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

51 Generalized Role Labeling using Propositional Representations Input Word: with | IIN_DT M1: NEXT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2: with A3: P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

52 Generalized Role Labeling using Propositional Representations Input Word: three | DT M1: PUT2 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2: with P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

53 Generalized Role Labeling using Propositional Representations Input Word: three | DT M1: NEXT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2: with three A3: P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

54 Generalized Role Labeling using Propositional Representations Input Word: wheels| DT_N M1: PUT2 M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2: with three P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

55 Generalized Role Labeling using Propositional Representations Input Word: wheels| DT_N M1: NEXT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2:with three wheels A3: P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

56 Generalized Role Labeling using Propositional Representations Input Word:.| DOT M1: OZ-OUT M2: The main manager bought some old cars with three wheels. P:main|A1:manager Current Pred: A1: some cars A2:with three wheels P:old|A1:cars Top Pred: bought A1: The manager A2: some cars A3:

57 Input Word:.| DOT M1: OZ-OUT M2: P:main|A1:manager Current Pred: bought A1: The manager A2: some cars A3: P:old|A1:cars Generalized Role Labeling using Propositional Representations The main manager bought some old cars with three wheels. A1:cars|A2:with three wheels

58 Input Word:.| DOT M1: FIN M2: P:main|A1:manager P:old|A1:cars Generalized Role Labeling using Propositional Representations The main manager bought some old cars with three wheels. A1:cars|A2:with three wheels P:bought|A1the manager A2:some cars

59 Training set SS-3-2- (DT_N I PUT1 NEXT) SS-3-2- (V_MA took PUT0 NEXT) SS-3-3- (DT_N her PUT2 NEXT) SS-3-4- (IIN_DT to PUT3 NEXT) SS-3-5- (DT_N school PUT3 NEXT) SS-3-6- (.. OZ-OUT NEXT) SS-3-7- (FIN)

60 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company in 1999, is priced at 99 basis_points above the Treasury 10-year note. Current Pred: non-callable A1: issue A2: A3: Flags:

61 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred:can be put_back A1: A2: the issue A3: to the company

62 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred:is priced A1: A2: the issue A3: at 99 basis_points

63 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred: A1: 99 basis_points A2: above the A3:

64 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred: A1: A2: treasury A3:

65 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred: A1: note A2: 10-year A3:

66 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred: A1: note A2: Treasury A3:

67 ‘Elementary expressions’ The non-callable issue, which can be put_back to the company, is priced at 99 basis_points above the Treasury 10-year note. Current Pred:is priced A1: A2: the issue A3: at 99 basis_points

68 Training set SS (DT_N IMB PUT1 NEXT) SS (V_MA bought PUT0 NEXT) SS (DT the PUT2 NEXT) SS (DT_N team PUT2 NEXT) SS (IIN_DT from PUT3 NEXT) SS (DT_N BUMBRIGHT PUT3 NEXT) SS (IIN_DT for CONSTRUAL PUT2 NEXT) SS (DT PUT2 &BACK OZ- OUT PUT3 NEXT) SS (DT_N $ PUT3 NEXT) SS (.. OZ-OUT NEXT) SS (FIN)

69 FIN


Download ppt "Semantic Parsing based on Propositional Representations Fernandez, Sopena, Padró."

Similar presentations


Ads by Google