transformers-tutorials icon indicating copy to clipboard operation
transformers-tutorials copied to clipboard

NER notebook issue

Open rajae-Bens opened this issue 5 years ago • 1 comments

Hi,

First, I want to thank u for this great job. I tried to execute the code of the NER with bert notebook but an error is generated when calculating the f1 score in the validation step

Screen Shot 2020-10-28 at 9 12 02 AM

could someone help plz thank u

rajae-Bens avatar Oct 28 '20 08:10 rajae-Bens

In the valid function, add these lines just before calling F1 Score function. pred_tags = [pred_tags] valid_tags = [valid_tags]

abhinav-bhardwaj avatar Apr 29 '22 19:04 abhinav-bhardwaj