You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest [documentation here](/content/docs/index.html).

## MitieModel Objects [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#mitiemodel-objects "Direct link to heading")

class MitieModel()

Wraps `MitieNLP` output to make it fingerprintable.

#### __init__ [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#__init__ "Direct link to heading")

```python
def __init__(
    model_path: Path,
    word_feature_extractor: Optional["mitie.total_word_feature_extractor"] = None
) -> None
```

Initializing MitieModel.

#### fingerprint [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#fingerprint "Direct link to heading")

```python
def fingerprint() -> Text
```

Fingerprints the model path.

Use a static fingerprint as we assume this only changes if the file path changes and want to avoid investigating the model in greater detail for now.

**Returns**:

Fingerprint for model.

## MitieNLP Objects [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#mitienlp-objects "Direct link to heading")

```python
@DefaultV1Recipe.register(
    DefaultV1Recipe.ComponentType.MODEL_LOADER, is_trainable=False
)
class MitieNLP(GraphComponent)
```

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.

#### get_default_config [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#get_default_config "Direct link to heading")

```python
@staticmethod
def get_default_config() -> Dict[Text, Any]
```

Returns default config (see parent class for full docstring).

#### __init__ [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#__init__-1 "Direct link to heading")

```python
def __init__(
    path_to_model_file: Path,
    extractor: Optional["mitie.total_word_feature_extractor"] = None
) -> None
```

Constructs a new language model from the MITIE framework.

#### required_packages [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#required_packages "Direct link to heading")

```python
@staticmethod
def required_packages() -> List[Text]
```

Lists required dependencies (see parent class for full docstring).

#### create [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#create "Direct link to heading")

```python
@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage,
                     resource: Resource,
                     execution_context: ExecutionContext) -> MitieNLP
```

Creates component (see parent class for full docstring).

#### provide [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/nlu/utils/mitie_utils/#provide "Direct link to heading")

```python
def provide() -> MitieModel
```

Provides loaded `MitieModel` and path during training and inference.
