chentao1999 / MedicalRelationExtraction

The depository support training and testing BERT-CNN model on three medical relation extraction corpora: BioCreative V CDR task corpus, traditional Chinese medicine literature corpus, and i2b2 temporal relation corpus.
MIT License
72 stars 20 forks source link

KeyError: '1\r' #1

Open 1249959224 opened 5 years ago

1249959224 commented 5 years ago

do: python run_BC5CDR.py train INFO:tensorflow:Loading training data INFO:tensorflow:Writing example 0 of 2033 Traceback (most recent call last): File "E:/YC/medical_retraction/MedicalRelationExtraction-master/run_BC5CDR.py", line 273, in train() File "E:/YC/medical_retraction/MedicalRelationExtraction-master/run_BC5CDR.py", line 140, in train train_examples, label_list, config.seq_length, tokenizer) File "E:\YC\medical_retraction\MedicalRelationExtraction-master\text_model.py", line 102, in convert_examples_to_features label_id = label_map[example.label] KeyError: '1\r' Where should I modify it?

ZMD177 commented 2 years ago

@1249959224 I have the same problem. How did you solve it?