class_docstr: Component which provides the common configuration and loaded model to others.
  
  This is used to avoid loading the Mitie model multiple times. Instead the Mitie
  model is only loaded once and then shared by depending components.
class_docstr_tok: ["Component","which","provides","the","common","configuration","and","loaded","model","to","others",".","This","is","used","to","avoid","loading","the","Mitie","model","multiple","times",".","Instead","the","Mitie","model","is","only","loaded","once","and","then","shared","by","depending","components","."]
docstr: Constructs a new language model from the MITIE framework.
docstr_tok: ["Constructs","a","new","language","model","from","the","MITIE","framework","."]
code: def __init__(
      self,
      path_to_model_file: Path,
      extractor: Optional["mitie.total_word_feature_extractor"] = None,
  ) -> None:
      """Constructs a new language model from the MITIE framework."""
      self._path_to_model_file = path_to_model_file
      self._extractor = extractor
  
file_path: rasa/rasa/nlu/utils/mitie_utils.py
imports: from __future__ import annotations
  import typing
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Text
  from rasa.engine.graph import GraphComponent, ExecutionContext
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.exceptions import InvalidConfigException
label_desc: Use image node_id 2 to create a new MitieNLP object from inherited base classes: GraphComponent with example: obj = MitieNLP(path_to_model_file, extractor)