interactive-cookbook / recipe-generation

Apache License 2.0
0 stars 0 forks source link

None nodes in pictures #8

Closed kastein closed 1 year ago

kastein commented 1 year ago

Some pictures created using the graph visualization tool include nodes with label "None" after running the splitting algorithm.

Caused probably by wrong format in the text files containing the AMRs in linearized penman format:

Example:

# ::id orange_chicken_9_instr4_0
# ::name orange_chicken_9_instr4_0
# ::snt Add the dried chili peppers , tangerine peel , and star anise , and toast for about 20 seconds , being careful not to burn the aromatics .
# ::root a2
# ::alignments a2
(a2 / add-02~e.82
    :ARG0 (y / you~e.109)
    :ARG1 (a3 / and~e.87
              :op1 (p2 / pepper~e.86
                       :mod (c2 / chili~e.85))
              :op2 (p / peel~e.89
                      :mod (t / tangerine~e.88))
              :op3 (a5 / anise~e.93
                       :mod (s2 / star~e.92)))
    :manner (c / care-04~e.103
               :ARG0 (y)
               :ARG1 (b / burn-01~e.106
                        :ARG1 (e / enzyme~e.108)
                        :mode essential~e.108
                        :polarity -~e.104)))

"None" node instead of "you" node. Probably caused by the the misplaced brackets around "y": Should be :ARG0 y instead of :ARG0 (y)

kastein commented 1 year ago

Edit: Yes, keeping original epidata layout markers leads to wrong formatting of penmand string. Need to reset layout markers if graph gets split