This repository contains code and experiment results introduced in the following paper:
What does it take to bake a cake? The RecipeRef corpus and anaphora resolution in procedural text
Biaoyan Fang, Timothy Baldwin and Karin Verspoor
In Finding of ACL 2022
Install python (preference 3) requirement: pip install -r requirements.txt
Download GloVe embeddings and also another version glove_50_300_2.txt
Download RecipeRef dataset and put it into the data
directory. Note that we separate full set and partition 80.
run setup_all.sh
and then setup_training.sh
Install brat evalation tool
We use nltk to tokenzize the brat file for training and generating the jsonlines files. Our code can be found in convert_brat_into_training_format-clear.ipynb
experiments.conf
bridging
python train_folds.py <experiment>
logs
directoryprediction
directorypython evaluate_folds.py <experiment>
exact
and relax
mention matching. For this paper, we use exact
mention matching