docstr: Transforms soft-clustering to hard-clustering
docstr_tok: ["Transforms","soft-clustering","to","hard-clustering"]
code: def _harden_topics(self, X_topics):
      """
      Transforms soft-clustering to hard-clustering
      """
      max_topics = []
      for i in range(X_topics.shape[0]):
          max_topics.append(X_topics[i].argmax())
      X_topics = np.array(max_topics)
      return X_topics
  
imports: import time
  from ..None import utils
  from ..imports import *
  from .None import preprocessor
  from .None import textutils
label_desc: Use image node_id 22 for calling the TopicModel obj's underlying member method code with example usage: obj._harden_topics(X_topics) and returns: X_topics