class_docstr: A wrapper class to apply sklearn clustering models on DocumentEmbeddings.
class_docstr_tok: ["A","wrapper","class","to","apply","sklearn","clustering","models","on","DocumentEmbeddings","."]
docstr: This method calculates some evaluation metrics for the clustering.
  
  Also, the result of the evaluation is logged.
  
  Args:
      corpus: the flair corpus this wrapper will use for evaluation.
      label_type: the label from the sentence will be used for the evaluation.
docstr_tok: ["This","method","calculates","some","evaluation","metrics","for","the","clustering",".","Also",",","the","result","of","the","evaluation","is","logged",".","Args",":","corpus",":","the","flair","corpus","this","wrapper","will","use","for","evaluation",".","label_type",":","the","label","from","the","sentence","will","be","used","for","the","evaluation","."]
code: def evaluate(self, corpus: Corpus, label_type: str):
      """This method calculates some evaluation metrics for the clustering.
  
      Also, the result of the evaluation is logged.
  
      Args:
          corpus: the flair corpus this wrapper will use for evaluation.
          label_type: the label from the sentence will be used for the evaluation.
      """
      X, Y = self._convert_dataset(corpus, label_type=label_type)
      predict = self.model.predict(X)
      log.info(
          "NMI - Score: "
          + str(normalized_mutual_info_score(predict, Y))
      )
  
imports: import logging
  import pickle
  from collections import OrderedDict
  from pathlib import Path
  from typing import Optional, Union
  import joblib
  from sklearn.base import BaseEstimator, ClusterMixin
  from sklearn.metrics import normalized_mutual_info_score
  from tqdm import tqdm
  from flair.data import Corpus, _iter_dataset
  from flair.datasets import DataLoader
  from flair.embeddings import DocumentEmbeddings
label_desc: Use image node_id 7 for calling the ClusteringModel obj's underlying member method code with example usage: obj.evaluate(corpus, label_type) without return types