class_docstr: TextSet wraps a set of texts with status.
docstr: Generate word_index map based on sorted word frequencies in descending order.
  Return the result dictionary, which can also be retrieved by 'get_word_index()'.
  Make sure you call this after tokenize. Otherwise you will get an error.
  See word2idx for more details.
  
  :return: Dictionary {word: id}
docstr_tok: ["Generate","word_index","map","based","on","sorted","word","frequencies","in","descending","order",".","Return","the","result","dictionary",",","which","can","also","be","retrieved","by","'get_word_index","(",")","'",".","Make","sure","you","call","this","after","tokenize",".","Otherwise","you","will","get","an","error",".","See","word2idx","for","more","details",".",":","return",":","Dictionary","{","word",":","id","}"]
code: def generate_word_index_map(
      self,
      remove_topN=0,
      max_words_num=-1,
      min_freq=1,
      existing_map=None,
  ):
      """
      Generate word_index map based on sorted word frequencies in descending order.
      Return the result dictionary, which can also be retrieved by 'get_word_index()'.
      Make sure you call this after tokenize. Otherwise you will get an error.
      See word2idx for more details.
  
      :return: Dictionary {word: id}
      """
      return callZooFunc(
          self.bigdl_type,
          "textSetGenerateWordIndexMap",
          self.value,
          remove_topN,
          max_words_num,
          min_freq,
          existing_map,
      )
  
imports: import six
  from bigdl.dllib.utils.common import JavaValue
  from bigdl.dllib.utils.file_utils import callZooFunc
  from pyspark import RDD
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 10 for calling the TextSet obj's underlying member method code with example usage: obj.generate_word_index_map(remove_topN, max_words_num, min_freq, existing_map) and returns: callZooFunc