# Error in using my customized tokenizer

**URL:** <https://forum.rasa.com/t/error-in-using-my-customized-tokenizer/51371>\
**Category:** Rasa Open Source\
**Created:** [February 16, 2022, 8:36am UTC](https://forum.rasa.com/t/error-in-using-my-customized-tokenizer/51371 "2022-02-16T08:36:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuantumCoder](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@QuantumCoder](https://forum.rasa.com/u/QuantumCoder)\
**Post date:** [February 16, 2022, 8:36am UTC](https://forum.rasa.com/t/error-in-using-my-customized-tokenizer/51371/1 "2022-02-16T08:36:36Z")

</div>

Hi. I am moving from rasa 2.x to rasa 3. And i meet this problem:

```auto
InvalidConfigException: Can't load class for name 'MyTokenTokenizer'. Please make sure to provide a valid name or module path and to register it using the '@DefaultV1Recipe.register' decorator.

```

Here is the infomation you may need:

1. currently rasa 2.7 works while rasa 3.0 fails, but since i got this projects and envs from an other guy, i dont know what he changed in rasa 2.7
2. MyTokenTokenizer: just treat it as a common nlp tokenizer, writen by my colleague.
3. i only use rasa nlu
4. here is my config.yml [config.yml](https://forum.rasa.com/uploads/short-url/cyiPnea4B6Ukzjsm9YfmQ77eEng.yml) (1.7 KB)

i think it should just a normal problem about how to apply personal customize file into rasa config, but i looked around and around and cant find it : (

---

<div class="post-metadata">

**Author:** ![MatthiasLeimeister](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/matthiasleimeister/32/18158_2.png) [@MatthiasLeimeister](https://forum.rasa.com/u/MatthiasLeimeister)\
**Post date:** [February 16, 2022, 9:10am UTC](https://forum.rasa.com/t/error-in-using-my-customized-tokenizer/51371/2 "2022-02-16T09:10:26Z")

</div>

Hi @QuantumCoder,

Rasa 3.0 contained major changes to the way components are implemented, so the error you see could come from using the Rasa 2 component with Rasa 3. When migrating to Rasa 3.0, did you adapt your `MyTokenTokenizer` class to the new graph architecture?

If not, please check the [migration guide](https://rasa.com/docs/rasa/migration-guide/#custom-policies-and-custom-components) and requirements for [custom graph components](https://rasa.com/docs/rasa/custom-graph-components/) to adapt your component.

---

<div class="post-metadata">

**Author:** ![QuantumCoder](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@QuantumCoder](https://forum.rasa.com/u/QuantumCoder)\
**Post date:** [February 16, 2022, 9:13am UTC](https://forum.rasa.com/t/error-in-using-my-customized-tokenizer/51371/3 "2022-02-16T09:13:36Z")

</div>

Great. I will check it. Thanks!
