class_docstr: Predictor for the :class:`~allennlp.models.coreference_resolution.CoreferenceResolver` model.
docstr: Expects JSON that looks like ``{"document": "string of document text"}``
docstr_tok: ["Expects","JSON","that","looks","like","``","{","``","document","''",":","``","string","of","document","text","''","}","``"]
code: def _json_to_instance(self, json_dict):
      """
      Expects JSON that looks like ``{"document": "string of document text"}``
      """
      document = json_dict["document"]
      spacy_document = self._spacy(document)
      sentences = [
          [token.text for token in sentence]
          for sentence in spacy_document.sents
      ]
      instance = self._dataset_reader.text_to_instance(sentences)
      return instance
  
file_path: magnitude/pymagnitude/third_party/allennlp/predictors/coref.py
imports: from __future__ import absolute_import
  from allennlp.common.util import get_spacy_model
  from allennlp.common.util import JsonDict
  from allennlp.data import DatasetReader, Instance
  from allennlp.models import Model
  from allennlp.predictors.predictor import Predictor
label_desc: Use image node_id 3 for calling the CorefPredictor obj's underlying member method code with example usage: obj._json_to_instance(json_dict) and returns: instance