Source code for paper "From Ultra-fine to Fine: Fine-tuning Ultra-fine Entity Typing Models to Fine-grained"
- In config.py, UF_DIR is where you put the ultra-fine entity typing data.
- In config.py, WORK_DIR is the work directory.
- Train with weak data (A pretrained version will be uploaded later):
python trianuf.py 0 - Fine-tune with manual annotation:
python trianuf.py 1 - Self-training:
python trianuf.py 2
- Few-NERD:
python trainfet.py 0
For the BBN dataset, we use the version processed by Ren et al. (2016), but we further split its training set into train/dev.