class_docstr: Each TextFeature keeps information of a single text record.
  It can include various status (if any) of a text,
  e.g. original text content, uri, category label, tokens, index representation
  of tokens, BigDL Sample representation, prediction result and so on.
docstr: Set the label for the TextFeature.
  
  :param label: Int
  :return: The TextFeature with label.
docstr_tok: ["Set","the","label","for","the","TextFeature",".",":","param","label",":","Int",":","return",":","The","TextFeature","with","label","."]
code: def set_label(self, label):
      """
      Set the label for the TextFeature.
  
      :param label: Int
      :return: The TextFeature with label.
      """
      self.value = callZooFunc(
          self.bigdl_type, "textFeatureSetLabel", self.value, int(label)
      )
      return self
  
file_path: BigDL/python/dllib/src/bigdl/dllib/feature/text/text_feature.py
imports: import sys
  import six
  from bigdl.dllib.utils.common import JavaValue
  from bigdl.dllib.utils.file_utils import callZooFunc
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 6 for calling the TextFeature obj's underlying member method code with example usage: obj.set_label(label) and returns: self