# How to configure the pipeline using other language?

**URL:** <https://forum.rasa.com/t/how-to-configure-the-pipeline-using-other-language/17685>\
**Category:** Rasa Open Source\
**Created:** [September 30, 2019, 3:28am UTC](https://forum.rasa.com/t/how-to-configure-the-pipeline-using-other-language/17685 "2019-09-30T03:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asw](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Asw](https://forum.rasa.com/u/Asw)\
**Post date:** [September 30, 2019, 3:28am UTC](https://forum.rasa.com/t/how-to-configure-the-pipeline-using-other-language/17685/1 "2019-09-30T03:28:43Z")

</div>

I have a few questions about how to configure the pipeline for my chatbot. Since Thai language cannot be tokenized by whitespace, I would like to use Thai tokenizer in spacy.

1. If I would like to use spacy for Thai tokenization, how can I call it in the pipeline and how I send tokenized to my own intent classification?
2. If I create my own intent classification, how can I use it in the pipeline?

Moreover, I have read an example for customizing components from this blog. [[Enhancing Rasa NLU models with Custom Components](https://blog.rasa.com/enhancing-rasa-nlu-with-custom-components/)] I don’t understand well about how custom pipeline works e.g. what is the input and the output each compenent required for? How I send my text to component? Could you please suggest how custom pipeline works?

Thank you so much.

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [September 30, 2019, 7:51am UTC](https://forum.rasa.com/t/how-to-configure-the-pipeline-using-other-language/17685/2 "2019-09-30T07:51:13Z")

</div>

Welcome @Asw!

If you want to use the Thai tokenization from spacy, you need to register your language model and link it to the language identifier, which will allow Rasa to load and use your new language by passing in your language identifier as the `language` option in the `config.yml` file (see [Language Support](https://rasa.com/docs/rasa/nlu/language-support/#spacy)). Additionally, you need to list the `SpacyTokenizer` in the `pipeline` in the `config.yml` file.

If you want to use a custom intent classification model, your custom component need to implement the interface described in [Custom NLU Components](https://rasa.com/docs/rasa/api/custom-nlu-components/#custom-nlu-components). Let’s assume your custom component can be found under `custom_components.ThaiIntentClassifier`. You need to add it to your `pipeline` in the `config.yml` file. E.g.:

```auto
pipeline:
- name: "SpacyNLP"
- name: "SpacyTokenizer"
- name: "SpacyFeaturizer"
- name: "RegexFeaturizer"
- name: "custom_components.ThaiIntentClassifier"

```

Let me know if you have any more questions.
