class_docstr: Predictor for the :class:`~allennlp.models.bidaf.SemanticRoleLabeler` model.
docstr: Predicts the semantic roles of the supplied sentence and returns a dictionary
  with the results.
  
  .. code-block:: js
  
      {"words": [...],
       "verbs": [
          {"verb": "...", "description": "...", "tags": [...]},
          ...
          {"verb": "...", "description": "...", "tags": [...]},
      ]}
  
  Parameters
  ----------
  sentence, ``str``
      The sentence to parse via semantic role labeling.
  
  Returns
  -------
  A dictionary representation of the semantic roles in the sentence.
docstr_tok: ["Predicts","the","semantic","roles","of","the","supplied","sentence","and","returns","a","dictionary","with","the","results",".","..","code-block",":",":","js","{","``","words","''",":","[","...","]",",","``","verbs","''",":","[","{","``","verb","''",":","``","...","''",",","``","description","''",":","``","...","''",",","``","tags","''",":","[","...","]","}",",","...","{","``","verb","''",":","``","...","''",",","``","description","''",":","``","...","''",",","``","tags","''",":","[","...","]","}",",","]","}","Parameters","--","--","--","--","--","sentence",",","``","str","``","The","sentence","to","parse","via","semantic","role","labeling",".","Returns","--","--","--","-","A","dictionary","representation","of","the","semantic","roles","in","the","sentence","."]
code: def predict(self, sentence):
      """
      Predicts the semantic roles of the supplied sentence and returns a dictionary
      with the results.
  
      .. code-block:: js
  
          {"words": [...],
           "verbs": [
              {"verb": "...", "description": "...", "tags": [...]},
              ...
              {"verb": "...", "description": "...", "tags": [...]},
          ]}
  
      Parameters
      ----------
      sentence, ``str``
          The sentence to parse via semantic role labeling.
  
      Returns
      -------
      A dictionary representation of the semantic roles in the sentence.
      """
      return self.predict_json({"sentence": sentence})
  
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 2 for calling the SemanticRoleLabelerPredictor obj's underlying member method code with example usage: obj.predict(sentence) and returns: self