# How to use multiple intent classifier in Rasa nlu pipeline

**URL:** <https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909>\
**Category:** Rasa Open Source\
**Created:** [August 28, 2019, 6:48am UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909 "2019-08-28T06:48:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gongshaojie12](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gongshaojie12/32/5114_2.png) [@gongshaojie12](https://forum.rasa.com/u/gongshaojie12)\
**Post date:** [August 28, 2019, 6:48am UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909/1 "2019-08-28T06:48:12Z")

</div>

Hello everyone: I want to use multiple intent classfier in rasa nlu pipeline,but not work,The following is my configuration file:

```auto
language: "en"

pipeline:
- name: "SpacyNLP"
- name: "SpacyTokenizer"
- name: "RegexFeaturizer"
- name: "SpacyFeaturizer"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "KeywordIntentClassifier"
- name: "SklearnIntentClassifier"
- name: "DucklingHTTPExtractor"
  url: "http://localhost:8000"
  dimensions: ["time", "duration", "phone-number", "number", "amount-of-money", "distance"]

```

I added two intent classifiers ，KeywordIntentClassifier and SklearnIntentClassifier, but KeywordIntentClassifier not work,where is the problem？

I want to use both keyword and machine learning to identify the intent at the same time. First, the intent is identified by the keyword. If the keyword recognizes the intent, the result is returned. Otherwise, the intent is identified through machine learning.

How can I do it? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![tmbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tmbo/32/19_2.png) [@tmbo](https://forum.rasa.com/u/tmbo)\
**Post date:** [September 3, 2019, 11:04am UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909/2 "2019-09-03T11:04:07Z")

</div>

I don’t think this order of components will work, as the sklearn intent classifier will always overwrite the keyword result with its own prediction.

Can you try putting the `KeywordIntentClassifier` after the `SklearnIntentClassifier` in your pipeline?

---

<div class="post-metadata">

**Author:** ![gongshaojie12](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gongshaojie12/32/5114_2.png) [@gongshaojie12](https://forum.rasa.com/u/gongshaojie12)\
**Post date:** [September 9, 2019, 6:56am UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909/3 "2019-09-09T06:56:24Z")

</div>

Thanks a lot ,it works

---

<div class="post-metadata">

**Author:** ![benharrell](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@benharrell](https://forum.rasa.com/u/benharrell)\
**Post date:** [November 21, 2019, 4:56pm UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909/4 "2019-11-21T16:56:07Z")

</div>

perhaps you could use 2 different models for this and merge the results?

---

<div class="post-metadata">

**Author:** ![Ghada](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@Ghada](https://forum.rasa.com/u/Ghada)\
**Post date:** [April 16, 2020, 9:20pm UTC](https://forum.rasa.com/t/how-to-use-multiple-intent-classifier-in-rasa-nlu-pipeline/14909/5 "2020-04-16T21:20:17Z")

</div>

I’m new to RASA, can you please tell me what’s the use of having multiple intent classifiers?
