# How to detect entity values which are not part of Lookup table

**URL:** https://forum.rasa.com/t/how-to-detect-entity-values-which-are-not-part-of-lookup-table/56333
**Category:** Rasa Open Source
**Created:** [November 27, 2022, 1:59pm UTC](https://forum.rasa.com/t/how-to-detect-entity-values-which-are-not-part-of-lookup-table/56333 "2022-11-27T13:59:42Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://forum.rasa.com/u/Bert)
#### Post date: [December 2, 2022, 12:36pm UTC](https://forum.rasa.com/t/how-to-detect-entity-values-which-are-not-part-of-lookup-table/56333/4 "2022-12-02T12:36:03Z")

</div>

If you provide enough examples in the trainingdata where the entities are annotated, entities not listed in the lookup table should also be picked up by position in the sentence.

so this should work:

```auto
- intent: order_pizza
  examples: |
    - I would like a [pizza](food)
    - I am hungry for a [calzone](food)
    - I would like a [cucumber](food)
    - I could go for a [ham and eggs](food)
    - Can i have a [pineaple](food)
    - please provide me with a [cherry](food)

- lookup: food
  examples: |
    - round doughy thing
    - italian pancake
    - heavenly food

```

If you now ask: “can I have a egg” the bot detects egg as the entity food because it looks like ham and eggs and is in the right position. I think if you provide more examples like this it should also detect entities that do not look like listed entities.

---

_[View the full topic](https://forum.rasa.com/t/how-to-detect-entity-values-which-are-not-part-of-lookup-table/56333)._
