class_docstr: TextSet wraps a set of texts with status.
class_docstr_tok: ["TextSet","wraps","a","set","of","texts","with","status","."]
docstr: Save the word_index dictionary to text file, which can be used for future inference.
  Each separate line will be "word id".
  
  For LocalTextSet, save txt to a local file system.
  For DistributedTextSet, save txt to a local or distributed file system (such as HDFS).
  
  :param path: The path to the text file.
docstr_tok: ["Save","the","word_index","dictionary","to","text","file",",","which","can","be","used","for","future","inference",".","Each","separate","line","will","be","``","word","id","''",".","For","LocalTextSet",",","save","txt","to","a","local","file","system",".","For","DistributedTextSet",",","save","txt","to","a","local","or","distributed","file","system","(","such","as","HDFS",")",".",":","param","path",":","The","path","to","the","text","file","."]
code: def save_word_index(self, path):
      """
      Save the word_index dictionary to text file, which can be used for future inference.
      Each separate line will be "word id".
  
      For LocalTextSet, save txt to a local file system.
      For DistributedTextSet, save txt to a local or distributed file system (such as HDFS).
  
      :param path: The path to the text file.
      """
      callZooFunc(
          self.bigdl_type, "textSetSaveWordIndex", self.value, path
      )
  
imports: import six
  from bigdl.util.common import JavaValue
  from zoo.common.utils import callZooFunc
  from pyspark import RDD
label_desc: Use image node_id 7 for calling the TextSet obj's underlying member method code with example usage: obj.save_word_index(path) without return types