interactive-cookbook / recipe-generation

Apache License 2.0
0 stars 0 forks source link

NodeNotFound exception during splitting #11

Closed kastein closed 1 year ago

kastein commented 1 year ago

Recipe: cobb_salad_8 Instruction 3: "Note : A tip to make this a very easy meal is to purchase the hard boiled eggs , pre - cooked bacon , blue cheese crumbles and pre - cooked chicken ."

Problem:

  1. "pre", "-" and "cooked" are tagged as separate actions (see below)
  2. "pre" is represented with "before" in the AMR -> gets removed during the splitting algorithm -> action nodes is lost and path from that node to the other action nodes cannot be computed anymore

Possible Solutions:

65  purchase    _   _   O   _   0   root    _   _
66  the _   _   O   _   0   root    _   _
67  hard    _   _   B-Sf    _   69  o   _   _
68  boiled  _   _   B-Ac    _   71  t   _   _
69  eggs    _   _   B-F _   68  t   _   _
70  ,   _   _   O   _   0   root    _   _
71  pre _   _   B-Ac    _   86  t   _   _
72  -   _   _   B-Ac    _   71  t   _   _
73  cooked  _   _   B-Ac    _   71  t   _   _
74  bacon   _   _   B-F _   73  t   _   _
75  ,   _   _   O   _   0   root    _   _
76  blue    _   _   B-F _   71  t   _   _
77  cheese  _   _   I-F _   0   root    _   _
78  crumbles    _   _   I-F _   0   root    _   _
79  and _   _   O   _   0   root    _   _
80  pre _   _   B-Ac    _   88  t   _   _
81  -   _   _   B-Ac    _   80  t   _   _
82  cooked  _   _   B-Ac    _   81  t   _   _
83  chicken _   _   B-F _   82  t   _   _
84  .   _   _   O   _   0   root    _   _
kastein commented 1 year ago

Decision for now: do not split AMR at all if this error occurs