class_docstr: Intent classifier which uses the `mitie` library.
class_docstr_tok: ["Intent","classifier","which","uses","the","`","mitie","`","library","."]
docstr: Constructs a new intent classifier using the MITIE framework.
docstr_tok: ["Constructs","a","new","intent","classifier","using","the","MITIE","framework","."]
code: def __init__(
      self,
      config: Dict[Text, Any],
      model_storage: ModelStorage,
      resource: Resource,
      clf: Optional["mitie.text_categorizer"] = None,
  ) -> None:
      """Constructs a new intent classifier using the MITIE framework."""
      self._config = config
      self._model_storage = model_storage
      self._resource = resource
      self._clf = clf
  
imports: from __future__ import annotations
  import logging
  from rasa.nlu.featurizers.featurizer import Featurizer
  import typing
  from typing import Any, Dict, List, Optional, Text, Type
  from rasa.engine.graph import ExecutionContext, GraphComponent
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.nlu.classifiers.classifier import IntentClassifier
  from rasa.nlu.utils.mitie_utils import MitieModel, MitieNLP
  from rasa.nlu.constants import TOKENS_NAMES
  from rasa.shared.nlu.constants import TEXT, INTENT
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 3 to create a new MitieIntentClassifier object from inherited base classes: GraphComponent, IntentClassifier with example: obj = MitieIntentClassifier(config, model_storage, resource, clf)