utterworks / fast-bert

Super easy library for BERT based NLP models
Apache License 2.0
1.86k stars 341 forks source link

jsonl format for ner task #274

Open zaradana opened 3 years ago

zaradana commented 3 years ago

I am generating this jsonl file as an input to BertNERDataBunch.from_jsonl but I am not able to create BertNERDataBunch. {"labels":"O O B-MISC I-MISC I-MISC O O","text":"CRICKET - ENGLISH COUNTY CHAMPIONSHIP SCORES ."} {"labels":"B-LOC O","text":"LONDON 1996-08-30"}

What is the correct format?