Closed Joseph-Vineland closed 2 years ago
I found the answer. I set the 'is_token_level' argument in the init function call to 'True'.
Edit line 253 of tagging_tasks.py.
super(Chunking, self).__init__(config, "chunk", tokenizer, False)
change to:
super(Chunking, self).__init__(config, "chunk", tokenizer, True)
I am attempting the seqeunce tagging task with custom data. I formatted my data just like they did here: https://www.clips.uantwerpen.be/conll2000/chunking/
Everything runs as expected until the very end when metrics are about to be reported. Then it fails with an error. I dug into things and it appears the 'sentence_tags' array has 0 elements. I can't figure out why. Please help!