class_docstr: CIDEr scorer.
class_docstr_tok: ["CIDEr","scorer","."]
docstr: singular instance
docstr_tok: ["singular","instance"]
code: def __init__(self, test=None, refs=None, n=4, sigma=6.0):
      """singular instance"""
      self.n = n
      self.sigma = sigma
      self.crefs = []
      self.ctest = []
      self.document_frequency = defaultdict(float)
      self.cook_append(test, refs)
      self.ref_len = None
  
file_path: graph4nlp/graph4nlp/pytorch/modules/evaluation/cider_tool/cider_scorer.py
imports: import copy
  import math
  import os
  import sys
  from collections import defaultdict
  import numpy
label_desc: Use image node_id 2 to create a new CiderScorer object from inherited base classes: object with example: obj = CiderScorer(test, refs, n, sigma)