class_docstr: Abstract Classification Model
class_docstr_tok: ["Abstract","Classification","Model"]
docstr: Build Model with x_data and y_data
  
  This function will setup a :class:`CorpusGenerator`,
   then call py:meth:`ABCClassificationModel.build_model_gen` for preparing processor and model
  
  Args:
      x_train:
      y_train:
  
  Returns:
docstr_tok: ["Build","Model","with","x_data","and","y_data","This","function","will","setup","a",":","class",":","`","CorpusGenerator","`",",","then","call","py",":","meth",":","`","ABCClassificationModel.build_model_gen","`","for","preparing","processor","and","model","Args",":","x_train",":","y_train",":","Returns",":"]
code: def build_model(
      self,
      x_train: TextSamplesVar,
      y_train: Union[
          ClassificationLabelVar, MultiLabelClassificationLabelVar
      ],
  ) -> None:
      """
      Build Model with x_data and y_data
  
      This function will setup a :class:`CorpusGenerator`,
       then call py:meth:`ABCClassificationModel.build_model_gen` for preparing processor and model
  
      Args:
          x_train:
          y_train:
  
      Returns:
  
      """
  
      train_gen = CorpusGenerator(x_train, y_train)
      self.build_model_generator([train_gen])
  
imports: import random
  from abc import ABC
  import numpy
  from typing import List, Dict, Any, Union
  from sklearn import metrics
  from tensorflow import keras
  import kashgari
  from kashgari.embeddings import ABCEmbedding, BareEmbedding
  from kashgari.generators import BatchDataSet, CorpusGenerator
  from kashgari.layers import L
  from kashgari.logger import logger
  from kashgari.metrics.multi_label_classification import multi_label_classification_report
  from kashgari.processors import ABCProcessor
  from kashgari.processors import ClassificationProcessor
  from kashgari.processors import SequenceProcessor
  from kashgari.tasks.abs_task_model import ABCTaskModel
  from kashgari.types import TextSamplesVar, ClassificationLabelVar, MultiLabelClassificationLabelVar
label_desc: Use image node_id 4 for calling the ABCClassificationModel obj's underlying member method code with example usage: obj.build_model(x_train, y_train) without return types