# Where to do pre processing on text

**URL:** <https://forum.rasa.com/t/where-to-do-pre-processing-on-text/19828>\
**Category:** Rasa Open Source\
**Created:** [October 15, 2019, 12:09pm UTC](https://forum.rasa.com/t/where-to-do-pre-processing-on-text/19828 "2019-10-15T12:09:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin007](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Sachin007](https://forum.rasa.com/u/Sachin007)\
**Post date:** [October 15, 2019, 12:09pm UTC](https://forum.rasa.com/t/where-to-do-pre-processing-on-text/19828/1 "2019-10-15T12:09:15Z")

</div>

I am developing a bot,i am able to run a bot with rest and socket. i just wants to do some preprocessing by spacy or nltk on text before passing it to nlu and core component. where can i write this code.

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [October 15, 2019, 1:45pm UTC](https://forum.rasa.com/t/where-to-do-pre-processing-on-text/19828/2 "2019-10-15T13:45:50Z")

</div>

In a [custom component](https://blog.rasa.com/enhancing-rasa-nlu-with-custom-components/).
