Practical overview
When it fits
Use it when you need a locally run research model for semantic-role labeling and can work with its Python 2 and Theano-based setup.
Who it is for
- NLP practitioners adding semantic-role labels to text-processing workflows.
- Researchers and developers who want to run or train SRL models using the repository's data formats and scripts.
Documented uses
- Label predicates and their semantic roles in tokenized sentences.
- Use pretrained CoNLL-2005 or CoNLL-2012 models for prediction.
- Train an SRL model or a predicate-identification model with the provided scripts and configuration files.
- Prepare tagged training examples in the repository's described formats.
Requirements & limits
The GitHub repository is public and lists an Apache-2.0 license.
- The README specifies Python 2, NumPy, Theano 0.9.0 and protobuf; Theano 1.0 compatibility is not tested there.
- NLTK is needed only for the interactive console; tcsh is listed only for processing CoNLL-2005 data.
- Large pretrained models require Git LFS or the alternative model downloads, and GloVe embeddings plus srlconll scripts are listed as required resources.
- Prediction loads the full input file into memory, with the README recommending fewer than 50,000 sentences per file.
- GPU examples require adjusting CUDA paths and model locations; a CPU prediction example is also provided.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run end-to-end SRL prediction on a sentence file
Use a pretrained model to identify predicates and label their semantic roles in tokenized sentences.
Before you start
- Python 2, NumPy, Theano 0.9.0 and protobuf.
- Git LFS or the separately listed model downloads, with pretrained model files decompressed under the codebase as described.
- GloVe embeddings and srlconll scripts, fetched with the repository's required-data script.
- A text file containing tokenized sentences, one per line.
Steps
Prepare the listed dependencies and required data resources.
Decompress the selected pretrained models under the codebase; the README's example uses CoNLL-2005 models.
Run
./scripts/run_end2end.sh sample_data/sentences_with_predicates.txt temp/sample.outfor the documented CPU example, adapting the input and output paths to the files in use.For GPU use, supply the GPU ID and adjust CUDA paths and model locations to the local setup.
Expected outcome
The output file contains predicate and semantic-role labels for the sentences, including roles such as A0, V and A1.
Guide limitations
- The documented end-to-end script loads the CoNLL-2005 predicate-identification and ensemble models; configurations may need local adjustment.
- The prediction code loads the entire input file into memory; the README recommends fewer than 50,000 sentences per file.
- The README specifies Python 2 and Theano 0.9.0 and says Theano 1.0 compatibility was not tested.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 19 November 2026
- Original website title
- luheng/deep_srl · Official homepage title · retained in its source language

