class_docstr: Predictor for the :class:`~allennlp.models.SpanConstituencyParser` model.
class_docstr_tok: ["Predictor","for","the",":","class",":","`","~allennlp.models.SpanConstituencyParser","`","model","."]
docstr: Predict a constituency parse for the given sentence.
  Parameters
  ----------
  sentence The sentence to parse.
  
  Returns
  -------
  A dictionary representation of the constituency tree.
docstr_tok: ["Predict","a","constituency","parse","for","the","given","sentence",".","Parameters","--","--","--","--","--","sentence","The","sentence","to","parse",".","Returns","--","--","--","-","A","dictionary","representation","of","the","constituency","tree","."]
code: def predict(self, sentence):
      """
      Predict a constituency parse for the given sentence.
      Parameters
      ----------
      sentence The sentence to parse.
  
      Returns
      -------
      A dictionary representation of the constituency tree.
      """
      return self.predict_json({"sentence": sentence})
  
file_path: magnitude/pymagnitude/third_party/allennlp/predictors/constituency_parser.py
imports: from __future__ import absolute_import
  from nltk import Tree
  from spacy.lang.en.tag_map import TAG_MAP
  from allennlp.common.util import JsonDict, sanitize
  from allennlp.data import DatasetReader, Instance
  from allennlp.models import Model
  from allennlp.predictors.predictor import Predictor
  from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter
label_desc: Use image node_id 2 for calling the ConstituencyParserPredictor obj's underlying member method code with example usage: obj.predict(sentence) and returns: self