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.
class_docstr_tok: ["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: analytics-zoo/pyzoo/zoo/feature/text/text_feature.py
imports: import sys
  import six
  from bigdl.util.common import JavaValue
  from zoo.common.utils import callZooFunc
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