coli-saar / am-parser

Modular implementation of an AM dependency parser in AllenNLP.
Apache License 2.0
30 stars 10 forks source link

Postprocessing crashes #61

Closed namednil closed 4 years ago

namednil commented 4 years ago

The UCCA postprocessing crashes on parser outputs. I get the following error message:

Traceback (most recent call last):
  File "/home/matthias/Schreibtisch/Hiwi/am-parser/ucca/decompress_mrp.py", line 36, in <module>
    decompressed = decompress_c(edges, node_ids)
  File "/home/matthias/Schreibtisch/Hiwi/am-parser/ucca/process_c.py", line 140, in decompress_c
    n = max([i for i in label_dict.keys()])
ValueError: max() arg is an empty sequence

I put all MRP files from the last parser training to /tmp/to_be_postprocessed.zip on tony-1. Please make sure that the postprocessing works on all of them (or at least doesn't crash), and push.

Let me know if you need more info or anything.