flair icon indicating copy to clipboard operation
flair copied to clipboard

How can I custom train my data in flair? and get the NER for my data using my labels.

Open krutik0204 opened this issue 2 years ago • 1 comments

I am currently working on an NLP project. It has news articles data that is unlabeled. So using the Flair Library of NLP, I need to perform NER on it. I couldn't find any help regarding how to train it using custom data in Flair Library. Actually, I have a news article dataset and I need to use the Flair Library of NLP for NER because it's giving an F1 score of 93%. So how can I custom train my data or modify flair library to annotate some more data so that it is able to recognize them and improve? Can you help me? I have gone through the Train a TARS model tutorial but couldn't train it with my data.

Also when I am training the data, but it's not providing the entity for the labels, you can refer to the screenshots attached here. Screenshot from 2022-05-27 15-25-06 Screenshot from 2022-05-27 15-25-18

krutik0204 avatar May 27 '22 10:05 krutik0204

Hi @krutik0204 ,

could you post an example of your training data and the columns array?

stefan-it avatar Jun 21 '22 08:06 stefan-it

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 22 '22 19:10 stale[bot]