Hi Hierarchical Relations

20 views
Skip to first unread message

Shawon Sarkar

unread,
Mar 21, 2017, 3:27:04 PM3/21/17
to brat-users
Hi,

Is there a way I can create hierarchical relations?

Thanks,

Best,
Shawon

Goran Topic

unread,
Mar 22, 2017, 1:04:11 AM3/22/17
to brat-...@googlegroups.com
Dear Shawon,

Please note that I am primarily a programmer, and not an annotator or
NLP expert, and we often need more precise explanations.
Do you mean relationships that are in a hierarchy (yes), or
relationships that show hierarchy (yes), or something else? An example
might be best.

Goran
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "brat-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to brat-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Shawon Sarkar

unread,
Mar 22, 2017, 12:18:49 PM3/22/17
to brat-users

Hello Goran,

I am sorry, I should have given you an example.
For our study, we want to label entity1 text, entity2 text and relationship/association between them. Here is an example of our imagined relationship list,

o Relationship Type 1
o Agree
o Disagree
o Relationship Type 2
o Agree
o Disagree

First, we want select the type of relationship and then the agreement or disagreement.
The ideal visualization would be,

Hope this will help.
Thank you for your reply.

Best,
Shawon

Goran Topic

unread,
Mar 23, 2017, 5:06:39 AM3/23/17
to brat-...@googlegroups.com
Dear Shawon,

I was almost sure we had that (and even our config docs described it).
The configuration for hierarchical relations indeed worked, but was not making it to the annotation UI.
I just reworked the arc form so that the hierarchical relationships are displayed properly.
Please update your brat to the newest `master` from github.
Then, all you need to do is indent the relationship definitions in `annotation.conf` using Tab:

[relations]
RelType1 Arg1:Entity, Arg2:Entity
RelType1Agree Arg1:Entity, Arg2:Entity
RelType1Disagree Arg1:Entity, Arg2:Entity
RelType2 Arg1:Entity, Arg2:Entity
RelType2Agree Arg1:Entity, Arg2:Entity
RelType2Disagree Arg1:Entity, Arg2:Entity

Goran


To unsubscribe from this group and stop receiving emails from it, send an email to brat-users+unsubscribe@googlegroups.com.

Shawon Sarkar

unread,
Mar 25, 2017, 8:44:11 PM3/25/17
to brat-users
Hi Goran,

Perfect!
Thank you thank you so much! 

Shawon
Reply all
Reply to author
Forward
0 new messages