class_docstr: A text data decoder that decodes raw text data.
  
  Operations include splitting on word or character level, truncation,
  inserting special tokens, mapping text units to indexes, etc.
  
  Args:
      split_level (str): The name of split level on which text sequence is
          split. Either "word" or "char".
      delimiter (str): The delimiter character used when splitting on word
          level.
      bos_token (str, optional): Special token added to the beginning of
          sequences. If it is `None` (default) or an empty string, no
          BOS token is added.
      eos_token (str, optional): Special tokan added to the end of
          sequences. If it is `None` (default) or an empty string, no EOS
          token is added.
      max_seq_length (int, optional): Maximum length of output sequences.
          Tokens exceeding the maximum length will be truncated. The length
          does not include any added bos_token and eos_token. If not
          given, no truncation is performed.
      token_to_id_map (optional): A
          :class:`~tensorflow.contrib.lookup.HashTable` instance that maps
          token strings to integer indexes. If not given, the decoder will
          not decode text into indexes. :attr:`bos_token` and
          :attr:`eos_token` (if given) should have entries in the
          :attr:`token_to_id_map` (if given).
      text_tensor_name (str): Name of the text tensor results. Used as a
          key to retrieve the text tensor.
      length_tensor_name (str): Name of the text length tensor results.
      text_id_tensor_name (str): Name of the text index tensor results.
class_docstr_tok: ["A","text","data","decoder","that","decodes","raw","text","data",".","Operations","include","splitting","on","word","or","character","level",",","truncation",",","inserting","special","tokens",",","mapping","text","units","to","indexes",",","etc",".","Args",":","split_level","(","str",")",":","The","name","of","split","level","on","which","text","sequence","is","split",".","Either","``","word","''","or","``","char","''",".","delimiter","(","str",")",":","The","delimiter","character","used","when","splitting","on","word","level",".","bos_token","(","str",",","optional",")",":","Special","token","added","to","the","beginning","of","sequences",".","If","it","is","`","None","`","(","default",")","or","an","empty","string",",","no","BOS","token","is","added",".","eos_token","(","str",",","optional",")",":","Special","tokan","added","to","the","end","of","sequences",".","If","it","is","`","None","`","(","default",")","or","an","empty","string",",","no","EOS","token","is","added",".","max_seq_length","(","int",",","optional",")",":","Maximum","length","of","output","sequences",".","Tokens","exceeding","the","maximum","length","will","be","truncated",".","The","length","does","not","include","any","added","bos_token","and","eos_token",".","If","not","given",",","no","truncation","is","performed",".","token_to_id_map","(","optional",")",":","A",":","class",":","`","~tensorflow.contrib.lookup.HashTable","`","instance","that","maps","token","strings","to","integer","indexes",".","If","not","given",",","the","decoder","will","not","decode","text","into","indexes",".",":","attr",":","`","bos_token","`","and",":","attr",":","`","eos_token","`","(","if","given",")","should","have","entries","in","the",":","attr",":","`","token_to_id_map","`","(","if","given",")",".","text_tensor_name","(","str",")",":","Name","of","the","text","tensor","results",".","Used","as","a","key","to","retrieve","the","text","tensor",".","length_tensor_name","(","str",")",":","Name","of","the","text","length","tensor","results",".","text_id_tensor_name","(","str",")",":","Name","of","the","text","index","tensor","results","."]
code: def text_tensor_name(self, name):
      self._text_tensor_name = name
  
imports: import numpy
  import tensorflow
  from tensorflow.contrib.slim.python.slim.data import data_decoder
  from texar.tf.data.vocabulary import SpecialTokens
  from texar.tf.utils import dtypes
  from texar.tf.hyperparams import HParams
label_desc: Use image node_id 6 for calling the TextDataDecoder obj's underlying member method code with example usage: obj.text_tensor_name(name) without return types