# Rasa and Coreference Resolution in spaCy - neuralcoref

**URL:** <https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343>\
**Category:** Rasa Open Source\
**Created:** [September 26, 2019, 9:31pm UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343 "2019-09-26T21:31:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BitcoinKing](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@BitcoinKing](https://forum.rasa.com/u/BitcoinKing)\
**Post date:** [September 26, 2019, 9:31pm UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343/1 "2019-09-26T21:31:32Z")

</div>

Is there any tutorial how do i use [GitHub - huggingface/neuralcoref: ✨Fast Coreference Resolution in spaCy with Neural Networks](https://github.com/huggingface/neuralcoref) with Rasa?

Fast Coreference Resolution in spaCy with Neural Networks [https://huggingface.co/coref/](https://huggingface.co/coref/) [GitHub - huggingface/neuralcoref: ✨Fast Coreference Resolution in spaCy with Neural Networks](https://github.com/huggingface/neuralcoref)

I need a Coreference Resolution and it seems that Rasa can support this particular code in a pipeline because here it is registered as Spacy addon: [neuralcoref · spaCy Universe](https://spacy.io/universe/project/neuralcoref)

What i need is coref in my chat bot after i trained it to work automatically:

> I have a chair. Can you give it to me?

Rasa should understand that “it” means “chair” and utterance should contain this word for example “Ok, you can take chair there”

@akelad

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [September 30, 2019, 9:12am UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343/2 "2019-09-30T09:12:33Z")

</div>

hi @BitcoinKing - there is no such tutorial at the moment. What we see more often in real conversations is the need to resolve entities across multiple dialogue turns. Check out this tutorial on how to do that [Integrating Rasa with knowledge bases](https://blog.rasa.com/integrating-rasa-with-knowledge-bases/)

---

<div class="post-metadata">

**Author:** ![BitcoinKing](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@BitcoinKing](https://forum.rasa.com/u/BitcoinKing)\
**Post date:** [September 30, 2019, 1:30pm UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343/3 "2019-09-30T13:30:42Z")

</div>

I have read that already, but that is another task.

My challenge is about users: once they see bot is stupid they want to leave it

---

<div class="post-metadata">

**Author:** ![Gulu311296](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@Gulu311296](https://forum.rasa.com/u/Gulu311296)\
**Post date:** [January 9, 2020, 8:12am UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343/4 "2020-01-09T08:12:46Z")

</div>

Hi @BitcoinKing, were you able to find any tutorial or source related to your problem?

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [January 9, 2020, 12:31pm UTC](https://forum.rasa.com/t/rasa-and-coreference-resolution-in-spacy-neuralcoref/17343/5 "2020-01-09T12:31:23Z")

</div>

Hi @BitcoinKing,

if you define the capability of processing **“I have a chair. Can you give it to me?”** correct regarding the coreference resolution as “_not being stupid_”, I would be surprised.

However - why does the suggestion of @amn41 not fit your challenge?

As long as you only want to reference from “it” to “chair”, you could easily adapt the KnowledgeBaseAction for that!?

Regards  
Julian
