class_docstr: ```
  Main class used to tune and train Keras models for text classification using Array data.
  ```
class_docstr_tok: ["``","`","Main","class","used","to","tune","and","train","Keras","models","for","text","classification","using","Array","data",".","``","`"]
code: def __init__(
      self,
      model,
      train_data=None,
      val_data=None,
      batch_size=U.DEFAULT_BS,
      eval_batch_size=U.DEFAULT_BS,
      workers=1,
      use_multiprocessing=False,
  ):
      super().__init__(
          model,
          train_data=train_data,
          val_data=val_data,
          batch_size=batch_size,
          eval_batch_size=eval_batch_size,
          workers=workers,
          use_multiprocessing=use_multiprocessing,
      )
      return
  
file_path: ktrain/ktrain/text/learner.py
imports: from ..None import utils
  from ..core import ArrayLearner, GenLearner, _load_model
  from ..imports import *
  from .preprocessor import TransformersPreprocessor
label_desc: Use image node_id 1 to create a new BERTTextClassLearner object from inherited base classes: ArrayLearner with example: obj = BERTTextClassLearner(model, train_data, val_data, batch_size, eval_batch_size, workers, use_multiprocessing)