coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
17 stars 2 forks source link

PENMAN notation of graphs. Language generator but not parsing a case. #76

Open vsotofrances opened 3 years ago

vsotofrances commented 3 years ago

How can I define this graph : [u_1295/PIPE -INPUT-> u_1296/NODE; u_1295 -OUTPUT-> u_1297/NODE; u_1300/PIPE -INPUT-> u_1297; u_1300 -OUTPUT-> u_1302/NODE] into the GUI format for graphs top parse it with vic-node.irtg.txt

Otherwise stated, when the input graph is like this Captura de pantalla 2021-06-28 232757

I think, It should work with: (h_1/PIPE :INPUT (n_1 / NODE) :OUTPUT (n_2/NODE :INPUT-of (h_2/PIPE :OUTPUT (n_3/NODE))))

This works: (n1/NODE :INPUT-of (P1/PIPE :OUTPUT (n2/NODE))) This does not: (n1/NODE :INPUT-of (P1/PIPE :OUTPUT (n2/NODE :INPUT-of (P2/PIPE :OUTPUT (n3/NODE))))

"Chains" generated by automatically by the language generator when the graph is exported to ISI style AMR,...like this long one: (u_3798 / PIPE :INPUT (u_3799 / NODE) :OUTPUT (u_3800 / NODE :INPUT-of (u_3803 / PIPE :OUTPUT (u_3805 / NODE :INPUT-of (u_3808 / PIPE :OUTPUT (u_3810 / NODE :INPUT-of (u_3813 / PIPE :OUTPUT (u_3815 / NODE :INPUT-of (u_3818 / PIPE :OUTPUT (u_3820 / NODE :INPUT-of (u_3823 / PIPE :OUTPUT (u_3825 / NODE :INPUT-of (u_3828 / PIPE :OUTPUT (u_3830 / NODE :INPUT-of (u_3833 / PIPE :OUTPUT (u_3835 / NODE))))))))))))))))

Afterwards when trying to parse it, no show language is activited.

Thanks in advance Victor