class_docstr: Main coreference resolution algorithm
docstr: Run the coreference model on some utterances
  
  Arg:
      last_utterances_added: run the coreference model over the last utterances added to the data
      follow_chains: follow coreference chains over previous utterances
docstr_tok: ["Run","the","coreference","model","on","some","utterances","Arg",":","last_utterances_added",":","run","the","coreference","model","over","the","last","utterances","added","to","the","data","follow_chains",":","follow","coreference","chains","over","previous","utterances"]
code: def run_coref_on_utterances(
      self, last_utterances_added=False, follow_chains=True, debug=False
  ):
      """Run the coreference model on some utterances
  
      Arg:
          last_utterances_added: run the coreference model over the last utterances added to the data
          follow_chains: follow coreference chains over previous utterances
      """
      if debug:
          print("== run_coref_on_utterances == start")
      self._prepare_clusters()
      if debug:
          self.display_clusters()
      mentions = list(
          self.data.get_candidate_mentions(
              last_utterances_added=last_utterances_added
          )
      )
      n_ant, antecedents = self.run_coref_on_mentions(mentions)
      mentions = antecedents.values()
      if follow_chains and last_utterances_added and n_ant > 0:
          i = 0
          while i < MAX_FOLLOW_UP:
              i += 1
              n_ant, antecedents = self.run_coref_on_mentions(mentions)
              mentions = antecedents.values()
              if n_ant == 0:
                  break
      if debug:
          self.display_clusters()
      if debug:
          print("== run_coref_on_utterances == end")
  
imports: import os
  import spacy
  import numpy
  from neuralcoref.train.utils import PACKAGE_DIRECTORY, SIZE_SINGLE_IN
  from neuralcoref.train.compat import unicode_
  from neuralcoref.train.document import Document, MENTION_TYPE, NO_COREF_LIST
label_desc: Use image node_id 7 for calling the Coref obj's underlying member method code with example usage: obj.run_coref_on_utterances(last_utterances_added, follow_chains, debug) without return types