class_docstr: Predictor for the :class:`~allennlp.models.bidaf.SemanticRoleLabeler` model.
code: def __init__(self, model, dataset_reader):
      super(SemanticRoleLabelerPredictor, self).__init__(
          model, dataset_reader
      )
      self._tokenizer = SpacyWordSplitter(
          language="en_core_web_sm", pos_tags=True
      )
  
file_path: magnitude/pymagnitude/third_party/allennlp/predictors/semantic_role_labeler.py
imports: from __future__ import absolute_import
  from allennlp.common.util import JsonDict, sanitize, group_by_count
  from allennlp.data import DatasetReader, Instance
  from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter
  from allennlp.models import Model
  from allennlp.predictors.predictor import Predictor
label_desc: Use image node_id 1 to create a new SemanticRoleLabelerPredictor object from inherited base classes: Predictor with example: obj = SemanticRoleLabelerPredictor(model, dataset_reader)