Skip to content

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).

License

Notifications You must be signed in to change notification settings

sanketvmehta/ssl-deep-srl

Repository files navigation

ssl-deep-srl

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).

Requirements

Python 3.6, PyTorch 0.4.1, AllenNLP v0.4.1

Setting up a virtual environment

Conda can be used to set up a virtual environment with Python 3.6 in which you can sandbox dependencies required for our implementation:

  1. Download and install Conda.

  2. Create a Conda environment with Python 3.6

    conda create -n ssl-deep-srl python=3.6
    
  3. 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
    

Setting up our environment

  1. Visit http://pytorch.org/ and install the PyTorch 0.4.1 package for your system.

  2. Clone our repo:

    git clone git@github.com:sanketvmehta/ssl-deep-srl.git
    

Installing AllenNLP from source

  1. Clone allennlp with git submodule

    git submodule update --init
    
  2. Checkout allennlp to v0.4.1

    git checkout 31f4f60
    
  3. Change your directory to allennlp submodule present under the parent repo directory:

    cd ssl-deep-srl/allennlp
    
  4. Install the necessary requirement by running

    INSTALL_TEST_REQUIREMENTS=true scripts/install_requirements.sh
    
  5. Once the requirements have been installed, run:

    pip install --editable .
    
  6. Test AllenNLP installation by running:

    ./scripts/verify.py
    

That's it! You're now ready to reproduce our results.

Citing

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}
}

About

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).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published