class_docstr: TextSet wraps a set of texts with status.
docstr: Get the labels of a TextSet (if any).
  If a text doesn't have a label, its corresponding position will be -1.
  
  :return: List of int for LocalTextSet.
           RDD of int for DistributedTextSet.
docstr_tok: ["Get","the","labels","of","a","TextSet","(","if","any",")",".","If","a","text","does","n't","have","a","label",",","its","corresponding","position","will","be","-1.",":","return",":","List","of","int","for","LocalTextSet",".","RDD","of","int","for","DistributedTextSet","."]
code: def get_labels(self):
      """
      Get the labels of a TextSet (if any).
      If a text doesn't have a label, its corresponding position will be -1.
  
      :return: List of int for LocalTextSet.
               RDD of int for DistributedTextSet.
      """
      return callZooFunc(
          self.bigdl_type, "textSetGetLabels", self.value
      )
  
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 13 for calling the TextSet obj's underlying member method code with example usage: obj.get_labels() and returns: callZooFunc