# Rasa test nlu: test if all entities are labeled chorrectly within a sentence

**URL:** <https://forum.rasa.com/t/rasa-test-nlu-test-if-all-entities-are-labeled-chorrectly-within-a-sentence/40134>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [February 12, 2021, 2:02pm UTC](https://forum.rasa.com/t/rasa-test-nlu-test-if-all-entities-are-labeled-chorrectly-within-a-sentence/40134 "2021-02-12T14:02:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MichaBauer](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@MichaBauer](https://forum.rasa.com/u/MichaBauer)\
**Post date:** [February 12, 2021, 2:02pm UTC](https://forum.rasa.com/t/rasa-test-nlu-test-if-all-entities-are-labeled-chorrectly-within-a-sentence/40134/1 "2021-02-12T14:02:45Z")

</div>

Hello everyone,

I want to try out different approaches in labeling entities within the same intent. For this I want to create 2 nlu files, one per approach, train two models and then compare the performance of them. The first approach uses a lot of entities, the second one tries to summarize the needed data info few entities.

I saw that with `rasa test nlu` you can get some nice confusion matrices, to analyse which entities are confused with each other. However I need to know if the whole sentence with multiple entities is labeled correctly. If yes, this sentence should be counted as successful and in the end I have a result that may look like this: “597 out of 1000 sentences are labeled with the correct entities.”

Is there a way to do this in Rasa? Or is there an easy way to accomplish this result? Thank you for any suggestions! 🙂

---

_[View the full topic](https://forum.rasa.com/t/rasa-test-nlu-test-if-all-entities-are-labeled-chorrectly-within-a-sentence/40134)._
