class_docstr: Objects of this class realize the explicit normalization of vectors (l1 and l2).
docstr: Calculate the norm by calling :func:`~gensim.matutils.unitvec` with the norm parameter.
  
  Parameters
  ----------
  corpus : iterable of iterable of (int, number)
      Input corpus.
code: def calc_norm(self, corpus):
      """Calculate the norm by calling :func:`~gensim.matutils.unitvec` with the norm parameter.
  
      Parameters
      ----------
      corpus : iterable of iterable of (int, number)
          Input corpus.
  
      """
      logger.info("Performing %s normalization...", self.norm)
      norms = []
      numnnz = 0
      docno = 0
      for bow in corpus:
          docno += 1
          numnnz += len(bow)
          norms.append(matutils.unitvec(bow, self.norm))
      self.num_docs = docno
      self.num_nnz = numnnz
      self.norms = norms
  
file_path: gensim/gensim/models/normmodel.py
imports: import logging
  from gensim import interfaces, matutils
label_desc: Use image node_id 3 for calling the NormModel obj's underlying member method code with example usage: obj.calc_norm(corpus) without return types