class_docstr: This class defines methods for loading and iterating over text datasets.
class_docstr_tok: ["This","class","defines","methods","for","loading","and","iterating","over","text","datasets","."]
docstr: Deprecated, use neon.data.text_preprocessing.pad_data.
docstr_tok: ["Deprecated",",","use","neon.data.text_preprocessing.pad_data","."]
code: def pad_data(
      path,
      vocab_size=20000,
      sentence_length=100,
      oov=2,
      start=1,
      index_from=3,
      seed=113,
      test_split=0.2,
  ):
      """
      Deprecated, use neon.data.text_preprocessing.pad_data.
      """
      logger.error(
          "pad_data in the Text class is deprecated.  This function"
          "is now in neon.data.text_preprocessing"
      )
      return pad_data(
          path,
          vocab_size=vocab_size,
          sentence_length=sentence_length,
          oov=oov,
          start=start,
          index_from=index_from,
          seed=seed,
          test_split=test_split,
      )
  
imports: import logging
  import numpy
  import os
  import h5py
  from neon.data.dataiterator import NervanaDataIterator, ArrayIterator
  from neon.data.datasets import Dataset
  from neon.data.text_preprocessing import pad_sentences, pad_data
label_desc: Use image node_id 7 for calling the Text obj's underlying member method code with example usage: obj.pad_data(path, vocab_size, sentence_length, oov, start, index_from, seed, test_split) and returns: pad_data