class_docstr: Intent classifier which uses the `mitie` library.
class_docstr_tok: ["Intent","classifier","which","uses","the","`","mitie","`","library","."]
docstr: Make intent predictions using `mitie`.
  
  Args:
      messages: The message which the intents should be predicted for.
      model: The loaded mitie model provided by `MitieNLP`.
docstr_tok: ["Make","intent","predictions","using","`","mitie","`",".","Args",":","messages",":","The","message","which","the","intents","should","be","predicted","for",".","model",":","The","loaded","mitie","model","provided","by","`","MitieNLP","`","."]
code: def process(
      self, messages: List[Message], model: MitieModel
  ) -> List[Message]:
      """Make intent predictions using `mitie`.
  
      Args:
          messages: The message which the intents should be predicted for.
          model: The loaded mitie model provided by `MitieNLP`.
      """
      for message in messages:
          if self._clf:
              token_strs = self._tokens_of_message(message)
              intent, confidence = self._clf(
                  token_strs, model.word_feature_extractor
              )
          else:
              # either the model didn't get trained or it wasn't
              # provided with any data
              intent = None
              confidence = 0.0
  
          message.set(
              "intent",
              {"name": intent, "confidence": confidence},
              add_to_output=True,
          )
  
      return messages
  
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 6 for calling the MitieIntentClassifier obj's underlying member method code with example usage: obj.process(messages, model) and returns: messages