docstr: Evaluate the pytorch model that is currently being build
  We take the embedding vocabulary currently being trained
docstr_tok: ["Evaluate","the","pytorch","model","that","is","currently","being","build","We","take","the","embedding","vocabulary","currently","being","trained"]
code: def __init__(
      self,
      model,
      dataset,
      test_data_path,
      test_key_file,
      embed_path,
      args,
  ):
      """Evaluate the pytorch model that is currently being build
      We take the embedding vocabulary currently being trained
      """
      self.test_key_file = test_key_file
      self.cuda = args.cuda
      self.model = model
      batch_sampler = NCBatchSampler(
          dataset.mentions_pair_length,
          batchsize=args.batchsize,
          shuffle=False,
      )
      self.dataloader = DataLoader(
          dataset,
          collate_fn=padder_collate,
          batch_sampler=batch_sampler,
          num_workers=args.numworkers,
          pin_memory=args.cuda,
      )
      self.mentions_idx, self.n_pairs = batch_sampler.get_batch_info()
      self.load_meta(test_data_path)
  
imports: import os
  import subprocess
  import io
  import pickle
  import torch
  from torch.utils.data import DataLoader
  from neuralcoref.train.conllparser import FEATURES_NAMES
  from neuralcoref.train.dataset import NCBatchSampler, padder_collate
  from neuralcoref.train.compat import unicode_
label_desc: Use image node_id 1 to create a new ConllEvaluator object from inherited base classes: object with example: obj = ConllEvaluator(model, dataset, test_data_path, test_key_file, embed_path, args)