# Where to store outputs of custom NLU components

**URL:** <https://forum.rasa.com/t/where-to-store-outputs-of-custom-nlu-components/31523>\
**Category:** Rasa Open Source\
**Created:** [July 19, 2020, 10:35am UTC](https://forum.rasa.com/t/where-to-store-outputs-of-custom-nlu-components/31523 "2020-07-19T10:35:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsgiraldo](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@jsgiraldo](https://forum.rasa.com/u/jsgiraldo)\
**Post date:** [July 19, 2020, 10:35am UTC](https://forum.rasa.com/t/where-to-store-outputs-of-custom-nlu-components/31523/1 "2020-07-19T10:35:59Z")

</div>

Hi, new to Rasa here. I’ve been following the tutorials for building a `SentimentAnalyzer` custom NLU component and I noticed that the sentiment prediction is appended to the “_entities_” variable of the `Message` class, e.g. `message.set("entities", [entity], add_to_output=True)`.

I was wondering whether this is an absolute requirement for any custom predictions to work? It seems counterintuitive to have non-entities like a sentiment alongside actual entities like names, locations, etc. I would prefer the outputs of custom components in their own objects. Is that possible? For example:

```auto
{
  "intent": {
    "name": "foo",
    "confidence": 0.1234567890
  },
  "entities": [],
  "sentiment": [
    {
      "value": "NEUTRAL",
      "score": 0.123,
      "confidence": 0.897
    }
  ],
}

```

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 29, 2020, 12:02pm UTC](https://forum.rasa.com/t/where-to-store-outputs-of-custom-nlu-components/31523/2 "2020-07-29T12:02:16Z")

</div>

Hey @jsgiraldo thanks for raising this, that’s a really good point. I’ve opened a github issue [here](https://github.com/RasaHQ/rasa/issues/6293) and we’re gonna look into it in the next few weeks

---

<div class="post-metadata">

**Author:** ![degiz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/degiz/32/9936_2.png) [@degiz](https://forum.rasa.com/u/degiz)\
**Post date:** [August 21, 2020, 8:13am UTC](https://forum.rasa.com/t/where-to-store-outputs-of-custom-nlu-components/31523/3 "2020-08-21T08:13:57Z")

</div>

hey @jsgiraldo

I’ve commented in the GH [issue](https://github.com/RasaHQ/rasa/issues/6293), feel free to join the discussion!
