class_docstr: Frozen-encoder coreference model.
class_docstr_tok: ["Frozen-encoder","coreference","model","."]
code: def __init__(
      self,
      encoder: encoders.BertEncoderWithOffsets,
      classifier: edge_predictor.SingleEdgePredictor,
  ):
      self.encoder = encoder
      self.classifier = classifier
  
      embs_field = utils.find_spec_keys(
          self.encoder.output_spec(), lit_types.TokenEmbeddings
      )[0]
      offset_field = utils.find_spec_keys(
          self.encoder.output_spec(), lit_types.SubwordOffsets
      )[0]
      self.extractor_kw = dict(
          edge_field="coref",
          embs_field=embs_field,
          offset_field=offset_field,
      )
  
imports: import os
  from absl import logging
  from lit_nlp.api import dtypes
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.examples.coref import edge_predictor
  from lit_nlp.examples.coref import encoders
  from lit_nlp.examples.coref.datasets import winogender
  from lit_nlp.lib import utils
  import numpy
  import tqdm
label_desc: Use image node_id 2 to create a new FrozenEncoderCoref object from inherited base classes: lit_model with example: obj = FrozenEncoderCoref(encoder, classifier)