# Add sentence for intent and get warning when train

**URL:** <https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [July 26, 2019, 6:15am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571 "2019-07-26T06:15:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 6:15am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/1 "2019-07-26T06:15:16Z")

</div>

the waring like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/13c741492ed5401b0a3d7a9abe2abdb2a627b2d2.png)

the warning may be caused by the sentence “for fivefive people” in nlu.md

why are there two entities “five” and “five”, i hope it is treated as number or num\_people, but not both. may be i miss some config, but i can’t fix it. any help will be appreciate, thanks.

---

<div class="post-metadata">

**Author:** ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)\
**Post date:** [July 26, 2019, 6:51am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/2 "2019-07-26T06:51:53Z")

</div>

Hello jianjunchang,

Can you post your training data with entity annotation here ? I’m having trouble understanding your situation, specifically about what entity you tried to extract and in what format you want to extract it.

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 7:03am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/3 "2019-07-26T07:03:36Z")

</div>

yes, of course, i’m just leaning rasa from the examples/formbot example, and i create a new project, and add some sentence like the example step by step this is the screenshot of the training data where may be has some mistake:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d40fac006ddf558917f9f262653dfa424c0d1503.png)

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 7:07am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/4 "2019-07-26T07:07:19Z")

</div>

i don’t know why the “number” entity and “num\_people” entity will be recgonized simultaneously

---

<div class="post-metadata">

**Author:** ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)\
**Post date:** [July 26, 2019, 7:14am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/5 "2019-07-26T07:14:41Z")

</div>

They are not supposed to be recognized like that at all if i’m not mistaking. Normally the pipeline uses Whitespace Tokenizer which tokenize the sentence by ’ '. So 88 can only be recognized as an entity. I don’t see that data in the formbot example on github. Is that your custom data ? Maybe you want to do it as `[88](num_people) people please` ? Why do you want to split 88 to 8 and 8 ?

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 7:27am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/6 "2019-07-26T07:27:29Z")

</div>

the data is mine for testing, i add the data with the rasa x, and the origin sentence i added is “8 people please”, but may be something has changed when marking the entity by the rasa x automatically. is’n it true, the 8 will be treated as num\_people entity or number entity, not both?

---

<div class="post-metadata">

**Author:** ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)\
**Post date:** [July 26, 2019, 7:43am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/7 "2019-07-26T07:43:43Z")

</div>

Yes, if you have 2 entities ‘num\_people’ and ‘number’ then the 8 can only be categorized as 1 of them, and which entity it’s recognized depends on the data that you provide for the model to train on.

What does ‘number’ represent for ? Can it be more specified in a particular context ? Like number of dishes, number of waiter ? Because i recommend that you design that entity in a more specific context for the model to learn or just get rid of it.

Anyway, i’m pretty sure `[8](num_people)[8](number)` is an invalid format.

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 7:50am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/8 "2019-07-26T07:50:39Z")

</div>

ok, i will try to reconstruct the data, and add more specific context, thanks very much for your replying.

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 7:57am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/9 "2019-07-26T07:57:07Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/70acae336e4100c999d12e7d796d0179bfdbd2ba.png)i want to change the entity selection, but it’s read-only, how can i do it? do i need to change it in the nlu.md file manually?

---

<div class="post-metadata">

**Author:** ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)\
**Post date:** [July 26, 2019, 8:00am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/10 "2019-07-26T08:00:43Z")

</div>

I always change my data in nlu.md so i don’t know much about doing it in an UI like that. But yes you can simply just make the change in file nlu.md.

---

<div class="post-metadata">

**Author:** ![jianjunchang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jianjunchang](https://forum.rasa.com/u/jianjunchang)\
**Post date:** [July 26, 2019, 8:02am UTC](https://forum.rasa.com/t/add-sentence-for-intent-and-get-warning-when-train/13571/11 "2019-07-26T08:02:41Z")

</div>

ok:smile:
