# Is there any way to access intent\_ranking in real development scenario?

**URL:** https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103
**Category:** Rasa Open Source
**Created:** [November 18, 2020, 9:52am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103 "2020-11-18T09:52:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![susajsnair](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/susajsnair/32/11786_2.png) [@susajsnair](https://forum.rasa.com/u/susajsnair)
#### Post date: [November 18, 2020, 9:52am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/1 "2020-11-18T09:52:43Z")

</div>

How can i access **intent\_ranking** in a real scenario, like which i can see via terminal response for each utterance. I have to know which and its rankings of specific utterance/intents comes in intent ranking list

---

<div class="post-metadata">

### Author: ![alopez](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alopez/32/13807_2.png) [@alopez](https://forum.rasa.com/u/alopez)
#### Post date: [November 19, 2020, 3:07pm UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/2 "2020-11-19T15:07:37Z")

</div>

Hi @susajsnair. What is it that you’re trying to accomplish by looking at the intent ranking?

---

<div class="post-metadata">

### Author: ![susajsnair](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/susajsnair/32/11786_2.png) [@susajsnair](https://forum.rasa.com/u/susajsnair)
#### Post date: [November 20, 2020, 4:22am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/3 "2020-11-20T04:22:17Z")

</div>

Hi @alopez , I would like to know the other intents comes in intent ranking after an utterance being identified under a specific intent. Sometimes my user may ask multiple intents at a time, So i need to catch up all related intents with score.

---

<div class="post-metadata">

### Author: ![alopez](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alopez/32/13807_2.png) [@alopez](https://forum.rasa.com/u/alopez)
#### Post date: [November 20, 2020, 10:58am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/4 "2020-11-20T10:58:19Z")

</div>

@susajsnair thanks for the context. It sounds like what you want to do might be best handled with [multiple intents](https://rasa.com/docs/rasa/tuning-your-model#doing-multi-intent-classification). There’s a [tutorial](https://blog.rasa.com/how-to-handle-multiple-intents-per-input-using-rasa-nlu-tensorflow-pipeline/) on this as well.

---

<div class="post-metadata">

### Author: ![susajsnair](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/susajsnair/32/11786_2.png) [@susajsnair](https://forum.rasa.com/u/susajsnair)
#### Post date: [November 21, 2020, 5:34am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/5 "2020-11-21T05:34:31Z")

</div>

@alopez this is not my case, All i wanted to access the intent\_ranking [] . Is there anyway to access that.

---

<div class="post-metadata">

### Author: ![alopez](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alopez/32/13807_2.png) [@alopez](https://forum.rasa.com/u/alopez)
#### Post date: [November 24, 2020, 6:16pm UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/6 "2020-11-24T18:16:41Z")

</div>

Hi @susajsnair, you can access the `intent_ranking` from a [custom policy](https://rasa.com/docs/rasa/policies/#custom-policies). To see an example policy that does this, look at [FallbackPolicy](https://github.com/RasaHQ/rasa/blob/master/rasa/core/policies/fallback.py#L92).

You can also access `intent_ranking` from a [custom action](https://rasa.com/docs/rasa/next/custom-actions), via the `tracker.latest_message` attribute.

---

<div class="post-metadata">

### Author: ![susajsnair](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/susajsnair/32/11786_2.png) [@susajsnair](https://forum.rasa.com/u/susajsnair)
#### Post date: [November 25, 2020, 5:09am UTC](https://forum.rasa.com/t/is-there-any-way-to-access-intent-ranking-in-real-development-scenario/37103/7 "2020-11-25T05:09:31Z")

</div>

@alopez looks good, thanks
