# Rasa train nlu in colab

**URL:** <https://forum.rasa.com/t/rasa-train-nlu-in-colab/54134>\
**Category:** Rasa Open Source\
**Created:** [July 5, 2022, 9:10am UTC](https://forum.rasa.com/t/rasa-train-nlu-in-colab/54134 "2022-07-05T09:10:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanding28](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sanding28](https://forum.rasa.com/u/sanding28)\
**Post date:** [July 5, 2022, 9:10am UTC](https://forum.rasa.com/t/rasa-train-nlu-in-colab/54134/1 "2022-07-05T09:10:09Z")

</div>

```auto
# Import modules for training
from rasa_nlu.training_data import load_data
from rasa_nlu.config import RasaNLUModelConfig
from rasa_nlu.model import Trainer
from rasa_nlu import config
# loading the nlu training samples
training_data = load_data("/content/drive/MyDrive/my_project/data/nlu/nlu.yml")
trainer = Trainer(config.load("/content/drive/MyDrive/my_project/config.yml"))
# training the nlu
interpreter = trainer.train(training_data)
model_directory = trainer.persist("/content/drive/MyDrive/my_project/models/", fixed_model_name="current")

```

```auto
Exception: Failed to find component class for 'LexicalSyntacticFeaturizer'. Unknown component name. Check your configured pipeline and make sure the mentioned component is not misspelled. If you are creating your own component, make sure it is either listed as part of the `component_classes` in `rasa_nlu.registry.py` or is a proper name of a class in a module.

```
