code: def __init__(
      self,
      estimator: TEXT_CLASSIFIER_ESTIMATOR,
      multilabel=False,
      **params,
  ):
      self.multilabel = multilabel
      if multilabel:
          self.y_encoder = MultiLabelBinarizer()
      self.estimator = estimator
      self.params = params
      if estimator == TEXT_CLASSIFIER_ESTIMATOR.FAST_TEXT:
          self.ft = None
      if estimator == TEXT_CLASSIFIER_ESTIMATOR.SVC:
          self.svc = None
      if estimator == TEXT_CLASSIFIER_ESTIMATOR.PIPELINE:
          if "pipeline" in params:
              self.pipeline = params["pipeline"]
          else:
              self.pipeline = None
  
file_path: underthesea/underthesea/models/text_classifier.py
imports: from enum import Enum
  from os.path import join
  import json
  import joblib
  from sklearn.preprocessing import MultiLabelBinarizer
  import warnings
  from underthesea.corpus.data import Sentence, Label
label_desc: Use image node_id 1 to create a new TextClassifier object from inherited base classes: Model with example: obj = TextClassifier(estimator, multilabel)