This repository contains the code for replicating results from
pip install -r requirements.txt
./download_pair2vec.sh
python -m allennlp.run evaluate [--output-file OUTPUT_FILE]
--cuda-device 0
--include-package endtasks
ARCHIVE_FILE INPUT_FILE
python -m allennlp.run train <config_file> -s <serialization_dir> --include-package endtasks
See the experiments
directory for relevant config files.
./download_corpus.sh
python -m embeddings.train --config experiments/pair2vec_train.json --save_path <directory>
@inproceedings{joshi-etal-2019-pair2vec,
title = "pair2vec: Compositional Word-Pair Embeddings for Cross-Sentence Inference",
author = "Joshi, Mandar and
Choi, Eunsol and
Levy, Omer and
Weld, Daniel and
Zettlemoyer, Luke",
booktitle = "Proceedings of the 2019 Conference of the North {A}merican Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)",
month = jun,
year = "2019",
address = "Minneapolis, Minnesota",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/N19-1362",
pages = "3597--3608"
}