OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Deep Srl

Deep Srl is a Python research repository containing code and pretrained models for deep semantic role labeling, with scripts for prediction and training. Its models identify predicates and label their semantic roles in tokenized sentences.

Independent OpenViST project profile, based on linked sources.

Deep Srl — Experiments with pretrained CoNLL-2005 and CoNLL-2012 SRL models
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Prepare the listed dependencies and required data resources.

  2. Decompress the selected pretrained models under the codebase; the README's example uses CoNLL-2005 models.

  3. Run ./scripts/run_end2end.sh sample_data/sentences_with_predicates.txt temp/sample.out for the documented CPU example, adapting the input and output paths to the files in use.

  4. 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.
Evidence and transparency

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