Relation Annotation in Inception

431 views
Skip to first unread message

Colab User

unread,
Dec 9, 2021, 6:30:10 AM12/9/21
to inception-users
Hi Inception Team,

We need to annotate text documents with not only entities but also relations with them.

Entity can be annotated using NER Layers and as much we can add.

However what is the method to tag relation between those entities. these entities can be in same sentence or distant to each other, in other parts of text document.

For example:

Entity1  related to  Entity2

A demonstration will be helpful.

Regards,

Inception User

Richard Eckart de Castilho

unread,
Dec 13, 2021, 1:34:22 AM12/13/21
to incepti...@googlegroups.com
Hi,

to define a relation layer on named entities, do:

* go to the project settings
* go to the layer panel there
* create a new layer
* select the type "relation"
* configure the layer to attach to the "named entity" layer
* save the layer
* optionally, add features to the relation layer

Then go to the annotation page, create two named entity annotations. Then left-click on the "bubble" of one named entity annotation, drag the mouse to the other while keeping the left mouse button pressed. An arc should be drawn in the process. Release the mouse button on the second bubble to create the relation.

If the second entity is very far away from the first, then select the first entity - then go to the place where the second entity is (which can mean using the paging buttons at the top of the brat-oriented editor). Once you are at the second entity, right-click on it and select to create a relation in the popup menu.

Cheers,

-- Richard

Dario Bonaretti

unread,
Mar 31, 2022, 3:33:28 AM3/31/22
to inception-users
Can we name different relations with this approach? I'm facing a similar problem as I would like to annotate something like this:


However, when I create a "relationship" layer, I don't know how to create different relationships and to constrain them to work only if certain entities appear.

Thanks

Richard Eckart de Castilho

unread,
Mar 31, 2022, 3:44:11 AM3/31/22
to incepti...@googlegroups.com
Hi Dario

> On 31. Mar 2022, at 09:33, Dario Bonaretti <bonaret...@gmail.com> wrote:
>
> Can we name different relations with this approach? I'm facing a similar problem as I would like to annotate something like this:
>
> BRAT coding
>
> However, when I create a "relationship" layer, I don't know how to create different relationships and to constrain them to work only if certain entities appear.

Relationships in brat an INCEpTION work a bit differently.

Since currently INCEpTION does not support having more than one relation layer per span layer, what you'd do is have a
"label" or "value" string feature on the relation that takes the label. If you want to constraint the labels depending
on the relation endpoints, you can write "constraint rules".

Unfortunately, we currently do not have a relation constraint example directly in the documentation, but there is an
older mail thread with a similar topic:

https://groups.google.com/g/inception-users/c/d1B-aB7j_Jw/m/UieG2W0bBAAJ

Best,

-- Richard
Reply all
Reply to author
Forward
0 new messages