# Can i my text file data set for intent examples and training just like lookup for entities?

**URL:** <https://forum.rasa.com/t/can-i-my-text-file-data-set-for-intent-examples-and-training-just-like-lookup-for-entities/41645>\
**Category:** Rasa Open Source\
**Created:** [March 23, 2021, 6:05pm UTC](https://forum.rasa.com/t/can-i-my-text-file-data-set-for-intent-examples-and-training-just-like-lookup-for-entities/41645 "2021-03-23T18:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PranshuRanjan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranshuranjan/32/10522_2.png) [@PranshuRanjan](https://forum.rasa.com/u/PranshuRanjan)\
**Post date:** [March 23, 2021, 6:05pm UTC](https://forum.rasa.com/t/can-i-my-text-file-data-set-for-intent-examples-and-training-just-like-lookup-for-entities/41645/1 "2021-03-23T18:05:58Z")

</div>

I want to use my text file which contains around 1000 examples of an intent, that I want to use in my bot for training. I have seen the usage of lookup table for entities but I want to use this as my intent examples. How can I do that?

---

<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:** [March 23, 2021, 6:39pm UTC](https://forum.rasa.com/t/can-i-my-text-file-data-set-for-intent-examples-and-training-just-like-lookup-for-entities/41645/2 "2021-03-23T18:39:51Z")

</div>

You can write a Python code unrelated to Rasa.

Let’s say in your text file you have each example on a line, you can create the intent with this pseudo-code:

```auto
output = "nlu:\n"
output += "- intent: " + intent_name + "\n"
output += " examples: |\n"

for line in text_file:
  output += " - " + line + "\n"

write(output, intent_name + ".yml")

```
