ShannonAI / mrc-for-flat-nested-ner

Code for ACL 2020 paper `A Unified MRC Framework for Named Entity Recognition`
643 stars 117 forks source link

Convert data from conll type to mrc type #98

Closed Toan-it-mta closed 2 years ago

Toan-it-mta commented 2 years ago

i have 1 dataset which is formatted similar to conll3 dataset. How can I convert this to mrc format so that the model can be read. Thanks!!

zhanghaok commented 1 year ago

i have 1 dataset which is formatted similar to conll3 dataset. How can I convert this to mrc format so that the model can be read. Thanks!!

Hello, did you solve this problem, I encountered the same problem, how did you solve it?

Toan-it-mta commented 1 year ago

i have 1 dataset which is formatted similar to conll3 dataset. How can I convert this to mrc format so that the model can be read. Thanks!!

Hello, did you solve this problem, I encountered the same problem, how did you solve it?

I write a piece of code to solve them. It's below.

conll2mrc

please reply me if it works well

zhanghaok commented 1 year ago

i have 1 dataset which is formatted similar to conll3 dataset. How can I convert this to mrc format so that the model can be read. Thanks!!

Hello, did you solve this problem, I encountered the same problem, how did you solve it?

I write a piece of code to solve them. It's below.

conll2mrc

please reply me if it works well

yead, this code is great and it has worked!Thank u very much~~~~😁