# How to add Fuzzy matching to the Entity Extraction?

**URL:** <https://forum.rasa.com/t/how-to-add-fuzzy-matching-to-the-entity-extraction/14375>\
**Category:** Rasa Open Source\
**Created:** [August 15, 2019, 8:51am UTC](https://forum.rasa.com/t/how-to-add-fuzzy-matching-to-the-entity-extraction/14375 "2019-08-15T08:51:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xames3](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xames3/32/3349_2.png) [@xames3](https://forum.rasa.com/u/xames3)\
**Post date:** [August 15, 2019, 8:51am UTC](https://forum.rasa.com/t/how-to-add-fuzzy-matching-to-the-entity-extraction/14375/1 "2019-08-15T08:51:05Z")

</div>

Hello,

Could some one please help me understand how we can add Fuzzy matching process while detecting the Entities? I read tutorials on NLU custom components, it says Fuzzy matching slows down the performance. But still could anyone explain how am I suppose to implement it? I tried creating my own custom NLU component but it didn’t work as expected also I’m not sure if it is correct in the first place.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [August 19, 2019, 9:00am UTC](https://forum.rasa.com/t/how-to-add-fuzzy-matching-to-the-entity-extraction/14375/2 "2019-08-19T09:00:51Z")

</div>

If you want to add fuzzy matching to Rasa, custom components is the right way to got. Please, have a look at [Custom NLU Components](https://rasa.com/docs/rasa/api/custom-nlu-components/#custom-nlu-components). It should help you getting started on custom components.

May I ask, what exactly your use case is?

I guess, you can find many tutorials online that explain how to do fuzzy matching. Maybe [GitHub - seatgeek/fuzzywuzzy: Fuzzy String Matching in Python](https://github.com/seatgeek/fuzzywuzzy) is something you can try out. If you need further help on how to set it up with Rasa, feel free to paste some code here and I try to help (e.g. your `config.py` and your custom component code).
