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.
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?
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?