Skip to content

Error analysis: visualization of AM dependency trees

Matthias Lindemann edited this page Jul 20, 2019 · 16 revisions

When you want to perform error analysis on AM dependency trees, this can be achieved with the following steps:

python prepare_visualize.py system_output.amconll gold_file.amconll some/directory/

Where system_output.amconll are the parser outputs, gold_file.amconll contains gold AM dependency trees and some/directory/ directory will serve as storage of intermediate files (conll-like files that MaltEval can read). This command intersects the two amconll files and sorts them by sentence length so you can look at short examples first.

Now, we can call MaltEval.jar to visuzalize the trees and explore in the errors:

java -jar analyzer/MaltEval.jar -g some/directory/gold_file.amconll -s some/directory/system_output.amconll -v 1

If you point your cursor on a word, a little label will pop up, telling you its graph fragment and type.

MaltEval is quite powerful, see here for a documentation. There's also a paper with some usage examples from Nilsson and Nivre 2008.

Clone this wiki locally