kyzhouhzau / BERT-NER

Use Google's BERT for named entity recognition (CoNLL-2003 as the dataset).
MIT License
1.24k stars 335 forks source link

Why text at index 1? #11

Open Gingersna opened 5 years ago

Gingersna commented 5 years ago

https://github.com/kyzhouhzau/BERT-NER/blob/58c2011b7949edcde32f28a8448f5cddf87294b5/BERT_NER.py#L194

In dataset, the word shoud at line[0]

kyzhouhzau commented 5 years ago

https://github.com/kyzhouhzau/BERT-NER/blob/58c2011b7949edcde32f28a8448f5cddf87294b5/BERT_NER.py#L162

Here I changed the order.