# How to get raw value from entities?

**URL:** <https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351>\
**Category:** Rasa Open Source\
**Created:** [February 20, 2019, 3:29am UTC](https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351 "2019-02-20T03:29:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herry](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@Herry](https://forum.rasa.com/u/Herry)\
**Post date:** [February 20, 2019, 3:29am UTC](https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351/1 "2019-02-20T03:29:21Z")

</div>

hi there, i set an entity named “location\_kr” and valued “Busan”, then set a synonym named “Busan City”. when i request “how to get Busan City?” to nlu , this is what i can get.

“entities”: [{ “start”: 0, “end”: 2, “value”: “Busan”, “entity”: “location\_kr”, “confidence”: 0.9931345361964512, “extractor”: “jieba\_pseg\_extractor” }]

but sometimes, i want to get raw value “Busan City” from sentence, like IBM watson assistant did. so may i know how can i get that raw value? thanks in advanced~

---

<div class="post-metadata">

**Author:** ![mauricedoepke](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mauricedoepke/32/1961_2.png) [@mauricedoepke](https://forum.rasa.com/u/mauricedoepke)\
**Post date:** [February 20, 2019, 3:15pm UTC](https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351/2 "2019-02-20T15:15:55Z")

</div>

You could extract it from the user message with the start and end position you get together with the intent. The user message is just a normal event in the tracker store.

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [February 20, 2019, 10:07pm UTC](https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351/3 "2019-02-20T22:07:55Z")

</div>

have you tried replacing the value and the synonym, make the value ‘Busan City’ and the synonym ‘busan city’ ? i am interested to see the result of this

---

<div class="post-metadata">

**Author:** ![Herry](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@Herry](https://forum.rasa.com/u/Herry)\
**Post date:** [February 21, 2019, 7:03am UTC](https://forum.rasa.com/t/how-to-get-raw-value-from-entities/5351/4 "2019-02-21T07:03:48Z")

</div>

oops, i forgot that way haha, thanks man
