class_docstr: DistributedTextSet is comprised of RDDs.
docstr: Create a DistributedTextSet using texts and labels.
  
  # Arguments:
  texts: RDD of String. Each element is the content of a text.
  labels: RDD of int or None if texts don't have labels.
docstr_tok: ["Create","a","DistributedTextSet","using","texts","and","labels",".","#","Arguments",":","texts",":","RDD","of","String",".","Each","element","is","the","content","of","a","text",".","labels",":","RDD","of","int","or","None","if","texts","do","n't","have","labels","."]
code: def __init__(
      self, texts=None, labels=None, jvalue=None, bigdl_type="float"
  ):
      """
      Create a DistributedTextSet using texts and labels.
  
      # Arguments:
      texts: RDD of String. Each element is the content of a text.
      labels: RDD of int or None if texts don't have labels.
      """
      if texts is not None:
          invalidInputError(
              isinstance(texts, RDD),
              "texts for DistributedTextSet should be RDD of String",
          )
      if labels is not None:
          invalidInputError(
              isinstance(labels, RDD),
              "labels for DistributedTextSet should be RDD of int",
          )
          labels = labels.map(lambda x: int(x))
      super(DistributedTextSet, self).__init__(
          jvalue, bigdl_type, texts, labels
      )
  
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 1 to create a new DistributedTextSet object from inherited base classes: TextSet with example: obj = DistributedTextSet(texts, labels, jvalue, bigdl_type)