class_docstr: Predictor for the :class:`~allennlp.models.coreference_resolution.CoreferenceResolver` model.
docstr: Predict the coreference clusters in the given document.
  
  .. code-block:: js
  
      {
      "document": [tokenised document text]
      "clusters":
        [
          [
            [start_index, end_index],
            [start_index, end_index]
          ],
          [
            [start_index, end_index],
            [start_index, end_index],
            [start_index, end_index],
          ],
          ....
        ]
      }
  
  Parameters
  ----------
  document : ``str``
      A string representation of a document.
  
  Returns
  -------
  A dictionary representation of the predicted coreference clusters.
docstr_tok: ["Predict","the","coreference","clusters","in","the","given","document",".","..","code-block",":",":","js","{","``","document","''",":","[","tokenised","document","text","]","``","clusters","''",":","[","[","[","start_index",",","end_index","]",",","[","start_index",",","end_index","]","]",",","[","[","start_index",",","end_index","]",",","[","start_index",",","end_index","]",",","[","start_index",",","end_index","]",",","]",",","....","]","}","Parameters","--","--","--","--","--","document",":","``","str","``","A","string","representation","of","a","document",".","Returns","--","--","--","-","A","dictionary","representation","of","the","predicted","coreference","clusters","."]
code: def predict(self, document):
      """
      Predict the coreference clusters in the given document.
  
      .. code-block:: js
  
          {
          "document": [tokenised document text]
          "clusters":
            [
              [
                [start_index, end_index],
                [start_index, end_index]
              ],
              [
                [start_index, end_index],
                [start_index, end_index],
                [start_index, end_index],
              ],
              ....
            ]
          }
  
      Parameters
      ----------
      document : ``str``
          A string representation of a document.
  
      Returns
      -------
      A dictionary representation of the predicted coreference clusters.
      """
      return self.predict_json({"document": document})
  
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 2 for calling the CorefPredictor obj's underlying member method code with example usage: obj.predict(document) and returns: self