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_sentences.
docstr_tok: ["Deprecated",",","use","neon.data.text_preprocessing.pad_sentences","."]
code: def pad_sentences(
      sentences, sentence_length=None, dtype=np.int32, pad_val=0.0
  ):
      """
      Deprecated, use neon.data.text_preprocessing.pad_sentences.
      """
      logger.error(
          "pad_sentences in the Text class is deprecated.  This function "
          "is now in neon.data.text_preprocessing."
      )
      return pad_sentences(
          sentences,
          sentence_length=sentence_length,
          dtype=dtype,
          pad_val=pad_val,
      )
  
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 6 for calling the Text obj's underlying member method code with example usage: obj.pad_sentences(sentences, sentence_length, dtype, pad_val) and returns: pad_sentences