# Nlu examples

**URL:** <https://forum.rasa.com/t/nlu-examples/47067>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [August 20, 2021, 6:42am UTC](https://forum.rasa.com/t/nlu-examples/47067 "2021-08-20T06:42:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mk007](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mk007/32/16609_2.png) [@Mk007](https://forum.rasa.com/u/Mk007)\
**Post date:** [August 20, 2021, 6:42am UTC](https://forum.rasa.com/t/nlu-examples/47067/1 "2021-08-20T06:42:25Z")

</div>

Hi team, I m confused about putting training examples while getting user details. My question is, what kind of combinations that I have followed while creating examples in nlu

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [August 20, 2021, 7:27am UTC](https://forum.rasa.com/t/nlu-examples/47067/2 "2021-08-20T07:27:33Z")

</div>

Under every intent, try writing as many different ways of saying the same things as possible.

For a `ask_weather` intent, it would be better to have “What’s the weather like today?” and “How cold is it here?” than “What’s the weather like today?” and “What’s today’s weather?”.

This is what I’d write as examples:

```markdown
- What's the weather like today?
- What's today's weather?
- How cold is it here?
- How hot is it right now?
- Can you give me the temperature please?
- Can I go outside?
- Should I wear a jacket?
- Is it too hot to go out?
- temp plz
- gimme weather
- how much hot
- hey tell me the temrpature

```

In Rasa X, you can see what conversations took place. If a user asked about the weather and the bot did not understand (for example the user said “how many celcius?”), you can add that new example to the intent by the click of a button.

---

<div class="post-metadata">

**Author:** ![Mk007](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mk007/32/16609_2.png) [@Mk007](https://forum.rasa.com/u/Mk007)\
**Post date:** [August 20, 2021, 7:57am UTC](https://forum.rasa.com/t/nlu-examples/47067/3 "2021-08-20T07:57:38Z")

</div>

Thank you so much for your reply Mr. Chrish and I have another question that why the slots are only accepting hard-coded nlu examples. For example. if I have only just two training examples with slots that are,

- may I know [muthu] (name)
- may I know [kumar] (name) In this scenario, the slot name is accepting only Muthu and Kumar. otherwise, slot doest not consider anything else. why?. can I have any chance to make the slot to be dynamic?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 20, 2021, 8:25am UTC](https://forum.rasa.com/t/nlu-examples/47067/4 "2021-08-20T08:25:00Z")

</div>

@Mk007 hi, as you mention the slot name as name and type hope so text so that why he is taking the only name if you create another slot by the last name then you also need to update the training example also.

Some projects for your reference, hope this will help you.Do check nlu file it will help you a lot

> **[rasa/examples at main · RasaHQ/rasa](https://github.com/RasaHQ/rasa/tree/main/examples)**
>
> main/examples

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [August 20, 2021, 8:43am UTC](https://forum.rasa.com/t/nlu-examples/47067/5 "2021-08-20T08:43:23Z")

</div>

Yeah, only\* Muthu and Kumar are accepted because names are very different from each other.

Let’s say I give you names from where I’m from, like Samir or Thérèse, if you saw these yourself you maybe wouldn’t even recognize them as names. In the same way, if I saw “muthu”, I wouldn’t know if it is a word or a name; now, because you taught me this word, I recognize it as a name.

AIs are like humans. They learn the same way as us. They just do it and respond (way!) faster 🙂

To not clutter your intents with thousands of examples, you can use [Lookup Tables](https://rasa.com/docs/rasa/nlu-training-data/#lookup-tables) for your entities, like [this one](https://raw.githubusercontent.com/ChrisRahme/fyp-chatbot/main/data/lookups/person_name.yml) for names (Kumar, Muthu, Samir, and Thérèse are all already there!). Of course, the longer it is, the slower training will be.

You can read more [here](https://blog.rasa.com/improving-entity-extraction/).

* * *

\* If you type “Kamar” or “Lamar” instead of “Kumar”, it may recognize it as a name since it’s not very different. So try providing as many name variations as possible.

---

<div class="post-metadata">

**Author:** ![Mk007](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mk007/32/16609_2.png) [@Mk007](https://forum.rasa.com/u/Mk007)\
**Post date:** [August 20, 2021, 9:20am UTC](https://forum.rasa.com/t/nlu-examples/47067/6 "2021-08-20T09:20:32Z")

</div>

thank you nik

---

<div class="post-metadata">

**Author:** ![Mk007](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mk007/32/16609_2.png) [@Mk007](https://forum.rasa.com/u/Mk007)\
**Post date:** [August 20, 2021, 9:21am UTC](https://forum.rasa.com/t/nlu-examples/47067/7 "2021-08-20T09:21:01Z")

</div>

thank you chrish.
