class_docstr: Predictor for the :class:`~allennlp.models.SpanConstituencyParser` model.
class_docstr_tok: ["Predictor","for","the",":","class",":","`","~allennlp.models.SpanConstituencyParser","`","model","."]
code: def predict_instance(self, instance):
      outputs = self._model.forward_on_instance(instance)
  
      # format the NLTK tree as a string on a single line.
      tree = outputs.pop("trees")
      outputs["hierplane_tree"] = self._build_hierplane_tree(
          tree, 0, is_root=True
      )
      outputs["trees"] = tree.pformat(margin=1000000)
      return sanitize(outputs)
  
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 4 for calling the ConstituencyParserPredictor obj's underlying member method code with example usage: obj.predict_instance(instance) and returns: sanitize