dl4el: A distant learning approach to entity linking
A Python implementation of ACL2019 paper
 Phong Le and Ivan Titov. Distant Learning for Entity Linking with Automatic Noise Detection. ACL 2019.
Written and maintained by Phong Le (lephong.xyz [at] gmail.com)
Requirements: Python 3.7, Pytorch 0.4, CUDA 8
The following instruction is for replicating the experiments reported in . Note that training and testing need lots of RAM (about 30GB) because some files related to Freebase have to be loaded.
Download data from here and unzip to the main folder (i.e. your-path/dl4el).
The new training set (170k sentences, based on the New York Time corpus) is at
The dev and test sets (based on AIDA-CoNLL corpus) are at
To train, from the main folder run
python3 -m jrk.el_main
IMPORTANT: if you want to train the model from scratch, you have to remove the current saved model (if exists, by
Using a GTX 1080 Ti GPU it will take about 3 hours for 20 epochs. The output is a model saved in two files:
For more options, please have a look at
python3 -m jrk.el_main --mode eval