plkmo / BERT-Relation-Extraction

PyTorch implementation for "Matching the Blanks: Distributional Similarity for Relation Learning" paper
Apache License 2.0
565 stars 132 forks source link

IndexError: ('list index out of range', 'occurred at index 47') #16

Closed potatoper closed 4 years ago

potatoper commented 4 years ago
       Please help,when I run the main_task.py,it occurred the error: 
       IndexError: ('list index out of range', 'occurred at index 47') (main_pretraining.py)

I tried all I can but it just didn't work.

        please help , xiexie
plkmo commented 4 years ago

Seems that somehow your semeval data is corrupted. Anyway, I have updated with code to filter out such data rows. Please try again.