# Entity detection in End to End testing fails when multiple entity extractors both extract the same entity

**URL:** <https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803>\
**Category:** Rasa Open Source\
**Created:** [September 16, 2020, 12:11am UTC](https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803 "2020-09-16T00:11:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plurn](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@plurn](https://forum.rasa.com/u/plurn)\
**Post date:** [September 16, 2020, 12:11am UTC](https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803/1 "2020-09-16T00:11:04Z")

</div>

Here is an example of an End to End test that I put in my tests/conversation\_tests.md file.

```
## Foreign language story
* greet: hi
    - action_greet
    - rewind
* ask_book: Are there any books in [french](foreign_language)?
    - utter_ask_book

```

When I run `rasa test`, I get the following result in results/failed\_stores.md:

```
## Foreign language story
* greet: hi
    - action_greet
    - rewind
* ask_book: Are there any books in [french](foreign_language)? <!-- predicted: ask_book: Are there any books in [french](foreign_language)[french](foreign_language) -->
    - utter_ask_book

```

I think what’s happening is that I have two entity extractors (DIETClassifier and CRFEntityExtractor) that are both independently finding the ‘french’ foreign\_language entity, so it gets duplicated when the test is run. I’m worried this double entity extraction could be affecting my model training. Is there a way to change this behavior?

Thanks

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [September 17, 2020, 7:09am UTC](https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803/2 "2020-09-17T07:09:56Z")

</div>

Your model training is unaffected since all extractors are independent. It’s a bug in rasa test. Could you please create an issue on GitHub?

---

<div class="post-metadata">

**Author:** ![plurn](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@plurn](https://forum.rasa.com/u/plurn)\
**Post date:** [September 18, 2020, 8:47pm UTC](https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803/3 "2020-09-18T20:47:09Z")

</div>

Sure, I’ll submit one now.

---

<div class="post-metadata">

**Author:** ![endreb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/endreb/32/12584_2.png) [@endreb](https://forum.rasa.com/u/endreb)\
**Post date:** [May 29, 2021, 1:30am UTC](https://forum.rasa.com/t/entity-detection-in-end-to-end-testing-fails-when-multiple-entity-extractors-both-extract-the-same-entity/33803/4 "2021-05-29T01:30:06Z")

</div>

> [@plurn](#):
>
> CRFEntityExtractor

I experience the same. When can we see a fix for that?
