class_docstr: Predictor for the :class:`~allennlp.models.coreference_resolution.CoreferenceResolver` model.
code: def __init__(self, model, dataset_reader):
      super(CorefPredictor, self).__init__(model, dataset_reader)
  
      # We have to use spacy to tokenise our document here, because we need
      # to also know sentence boundaries to propose valid mentions.
      self._spacy = get_spacy_model(
          "en_core_web_sm", pos_tags=True, parse=True, ner=False
      )
  
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 1 to create a new CorefPredictor object from inherited base classes: Predictor with example: obj = CorefPredictor(model, dataset_reader)