Skip to content

Reproducing results

Davide Spallaccini edited this page Jun 27, 2019 · 3 revisions

Installation

Install the requirements from the requirements.txt file.

Notice that on macOS you will have to compile code with CFLAGS different from the ones given in the installation script. Example solution:

sudo CFLAGS=-stdlib=libc++ /path/to/pip install allennlp
sudo CFLAGS=-stdlib=libc++ /path/to/pip install fairseq

Training

From the train.py module you can import the train() function that executes the training.

Evaluation script

You can disambiguate a document by running:

python disambiguate.py < doc.txt
Clone this wiki locally