nlplab / brat

brat rapid annotation tool (brat) - for all your textual annotation needs
http://brat.nlplab.org
Other
1.82k stars 509 forks source link

Changing the order in which Brat shows "Relations" and "Events" #1074

Open darrudi opened 10 years ago

darrudi commented 10 years ago

Hi,

We'd like to annotate both dependency parsing and Semantic Role Labeling (SRL) together. We implemented the dependency relations by "Relations" and SRLs by "Events". In order to make this happen we have to tag verbs twice, once for its dependency role and another time for its SRL's.

The problem is that Brat shows the events UNDER the relations. This confuses the annotators as the natural way to do this is in reverse. SRL is done on top of dependency.

Please take a look at the attached picture. The pink tags and arcs are SRL events and the gray ones are dependency relations. As you see the verb has two tags (which is fine) but we prefer the pink event to be on top of the gray relation. order

In our case a general rule solves the issue: put all events on top of relations when a token has both tags and forget about the "minimal crossing arcs"! :)

Cheers, Ehsan Darrudi

spyysalo commented 10 years ago

Candidate implementation: allow visual.conf to specify a per-type weight (or similar) attribute which can override default stacking order if present.