Closed BrambleXu closed 5 years ago
Hi, thank you for the interest in our paper and the code.
To get the training running on semeval you have to remove the masking mode, since the dataset does not provide NER tags. The same applies to the evaluation command.
Try running the training on semeval like this:
python relation_extraction.py train \
--write-model True \
--batch-size 8 \
--max-epochs 3 \
--lm-coef 0.7 \
--learning-rate 6.25e-5 \
--learning-rate-warmup 1e-3 \
--clf-pdrop 0.1 \
--attn-pdrop 0.15 \
--dataset semeval_2010_task8 \
--data-dir datasets/semeval_jsonl \
--seed=0 \
--log-dir ./logs/
Thanks for the replay. After deleting masking mode It works well now. But the running command you paste should separate the seed and log-dir option. Otherwise, there will be an error. Please correct it for users who see this issue.
The training command works well for the tacred dataset. But it didn't work for the semeval dataset.
I run the command below.
datasets/semeval_jsonl
stores the data.The error shows: