自定义datasets,执行finetune_and_eval()报这个错
Created by: wshzd
Traceback (most recent call last): File "E:/Pycharm/NER/ERNIE_NER/sequence_label.py", line 123, in seq_label_task.finetune_and_eval() File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\finetune\task.py", line 506, in finetune_and_eval return self.finetune(do_eval=True) File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\finetune\task.py", line 516, in finetune run_states = self._run(do_eval=do_eval) File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\finetune\task.py", line 557, in _run return self._run_with_data_feeder(do_eval=do_eval) File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\finetune\task.py", line 567, in _run_with_data_feeder for run_step, batch in enumerate(self.reader(), start=1): File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\reader\nlp_reader.py", line 286, in wrapper examples, batch_size, phase=phase): File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\reader\nlp_reader.py", line 213, in _prepare_batch_data self.tokenizer, phase) File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\reader\nlp_reader.py", line 464, in _convert_example_to_record for label in labels] + [no_entity_id] File "C:\Users\user\paddlepaddle\lib\site-packages\paddlehub\reader\nlp_reader.py", line 464, in for label in labels] + [no_entity_id] KeyError: 'O O O B-时间点 I-时间点 I-时间点 O B-否定