transformers-tutorials
transformers-tutorials copied to clipboard
NER notebook issue
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

could someone help plz thank u
In the valid function, add these lines just before calling F1 Score function.
pred_tags = [pred_tags]
valid_tags = [valid_tags]