# how rel\_component works?

**URL:** <https://support.prodi.gy/t/how-rel-component-works/6455>\
**Category:** Uncategorized\
**Created:** [March 28, 2023, 3:27am UTC](https://support.prodi.gy/t/how-rel-component-works/6455 "2023-03-28T03:27:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zanejins](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/zanejins/32/3641_2.png) [@Zanejins](https://support.prodi.gy/u/Zanejins)\
**Post date:** [March 28, 2023, 3:27am UTC](https://support.prodi.gy/t/how-rel-component-works/6455/1 "2023-03-28T03:27:50Z")

</div>

I am doing the relation extraction task, I saw the video you posted on youtube([SPACY v3: Custom trainable relation extraction component - YouTube](https://www.youtube.com/watch?v=8HL-Ap5_Axo&t=1069s)) and completed the relation extraction task according to this tutorial（[https://github.com/explosion/projects/tree/v3/tutorials/rel\_component）](https://github.com/explosion/projects/tree/v3/tutorials/rel_component%EF%BC%89), but I don't quite understand the process. I see that your model consists of two parts, one create\_instance\_tensor, and one classification\_layer. Can you give an example to illustrate the input and output of each part? like the picture below, Thank you.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/2/271e37643ae142660eea8c6abe8c2f4b69da97c9.jpeg)

---

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [March 30, 2023, 2:58pm UTC](https://support.prodi.gy/t/how-rel-component-works/6455/2 "2023-03-30T14:58:08Z")

</div>

hi @Zanejins!

Thanks for your comment and interest in the relations extractions tutorial.

The team is in the process of writing out a blog post that explains more of the tutorial with additional code snippets. We're hoping to publish that soon and I'll post back once it's up.

For example, here's the image you're referring to, which we'll describe more in the post:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/0/02b1b40dec4de052ac0b4cb25172975a13ceaeb6.jpeg)

---

<div class="post-metadata">

**Author:** ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)\
**Post date:** [May 1, 2023, 12:58pm UTC](https://support.prodi.gy/t/how-rel-component-works/6455/3 "2023-05-01T12:58:37Z")

</div>

hi @Zanejins!

Sorry for the delay.

Sofie and Victoria released their relations extractions blog late last week:

> **[Implementing a custom trainable component for relation extraction · Explosion](https://explosion.ai/blog/relation-extraction/)**
>
> Relation extraction refers to the process of predicting and labeling semantic relationships between named entities. In this blog post, we'll go over the process of building a custom relation extraction component using spaCy and Thinc. We'll also add...

Hope this helps provide more context on how `rel_component` works!
