boberle / corefconversion

Conversion scripts for coreference
Mozilla Public License 2.0
27 stars 4 forks source link

AssertionError #3

Closed kusumlata123 closed 1 year ago

kusumlata123 commented 2 years ago
assert sent_start == sent_stop

AssertionError ython3 jsonlines2conll.py -g testing/test.hindi.jsonlines -o ouput.conll Traceback (most recent call last): File "jsonlines2conll.py", line 156, in main() File "jsonlines2conll.py", line 145, in main jsonlines2conll( File "jsonlines2conll.py", line 88, in jsonlines2conll conll_transform.textpos2sentpos(mentions, sents) File "/home/dr/Desktop/corefconversion-master/conll_transform.py", line 274, in textpos2sentpos assert sent_start == sent_stop AssertionError

xiulinyang commented 1 year ago

It means the mention spans over 2 sentences. You might need to check if your sentence segmentation or mention span is correct or not.

boberle commented 1 year ago

Indeed. The assumption of all the formats in this repository is that each mention must be contained in a sentence, and can't span over several sentences.