luheng / deep_srl

Code and pre-trained model for: Deep Semantic Role Labeling: What Works and What's Next
Apache License 2.0
330 stars 77 forks source link

AssertionError in processing CONLL2012 data #28

Closed celine-lee closed 4 years ago

celine-lee commented 4 years ago

Hi,

When running the pre-processing for the Ontonotes CONLL2012 data, I run into this AssertionError at line 64 of the process_conll2012.py file : assert tags[t][props[t]] in {"B-V", "B-I"} due to the if-statements at line 149. I believe it is caused by when the tag passed into the file includes a nested verb label, such as the one below, where the word is labeled as a verb and is also the first word in a continued ARG2 span.

deep_srl_nestedcarg2v

Any suggestions on how to handle this?

celine-lee commented 4 years ago

I re-assembled the CONLL-2012 data, and these nested labels were removed, so I no longer have this issue.

StudentWorker commented 2 years ago

I re-assembled the CONLL-2012 data,but not sucessful.