JohnGiorgi / seq2rel-ds

This is a companion repository to seq2rel (https://github.com/JohnGiorgi/seq2rel) which aims to make it easy to generate training data.
5 stars 1 forks source link

Fix DocRED parsing of rels with commas #16

Closed JohnGiorgi closed 3 years ago

JohnGiorgi commented 3 years ago

PR #15 missed the case where a DocRED relation class label contained a ", ". This PR strips them out, and adds a test to ensure they are handled properly.