Code for "Mehta, S. V., Lee, J. Y., and Carbonell, J. (2018). Towards Semi-Supervised Learning for Deep Semantic Role Labeling. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (pp. 4958-4963).
Python 3.6, PyTorch 0.4.1, AllenNLP v0.4.1
Conda can be used to set up a virtual environment with Python 3.6 in which you can sandbox dependencies required for our implementation:
-
Create a Conda environment with Python 3.6
conda create -n ssl-deep-srl python=3.6
-
Activate the Conda environment. (You will need to activate the Conda environment in each terminal in which you want to run our implementation).
source activate ssl-deep-srl
-
Visit http://pytorch.org/ and install the PyTorch 0.4.1 package for your system.
-
Clone our repo:
git clone [email protected]:sanketvmehta/ssl-deep-srl.git
-
Clone
allennlp
with git submodulegit submodule update --init
-
Checkout
allennlp
tov0.4.1
git checkout 31f4f60
-
Change your directory to
allennlp
submodule present under the parent repo directory:cd ssl-deep-srl/allennlp
-
Install the necessary requirement by running
INSTALL_TEST_REQUIREMENTS=true scripts/install_requirements.sh
-
Once the requirements have been installed, run:
pip install --editable .
-
Test AllenNLP installation by running:
./scripts/verify.py
That's it! You're now ready to reproduce our results.
If you use our code in your research, please cite: Towards Semi-Supervised Learning for Deep Semantic Role Labeling
@inproceedings{mehta2018towards,
title={Towards Semi-Supervised Learning for Deep Semantic Role Labeling},
author={Mehta, Sanket Vaibhav and Lee, Jay Yoon and Carbonell, Jaime},
booktitle={Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
pages={4958--4963},
year={2018}
}