proycon / flat

FoLiA Linguistic Annotation Tool -- Flat is a web-based linguistic annotation environment based around the FoLiA format (http://proycon.github.io/folia), a rich XML-based format for linguistic annotation. Flat allows users to view annotated FoLiA documents and enrich these documents with new annotations, a wide variety of linguistic annotation types is supported through the FoLiA paradigm.
GNU General Public License v3.0
110 stars 15 forks source link

How to access alternative annotations in FLAT? #149

Closed luutuntin closed 5 years ago

luutuntin commented 5 years ago

Hi Maarten,

Here is my use case:

  1. "Просто" is automatically tagged as PART.

    alternative_01
  2. The annotator suggests an alternative, ADV.

    alternative_02
  3. We can see the annotation result.

    alternative_03
  4. But how to access the alternative annotation to modify it in FLAT?

    alternative_04

Best, Alex

proycon commented 5 years ago

Good question, alternative annotation is still a bit underused and underdeveloped. I see the visualisation is also missing, and indeed editing the alternative. This will need to be developed.

proycon commented 5 years ago

I've implemented the viewing part for alternative inline annotations (not released/deployed yet), it will look as follows and require the new "show alternative annotations" toggle in the tools & options menu to be enabled, as by default it will be disabled:

image

Editing/removing alternative annotations requires some extra work still.

proycon commented 5 years ago

@luutuntin I have an additional question regarding your use case, you asked:

But how to access the alternative annotation to modify it in FLAT?

I assume you mean you want to change the alternative annotation right? (and keep it as an alternative), this is the part I'd still have to implement. But I was thinking your question could perhaps also be interpreted as "I want to change the actual annotation (PART) to take the value of the alternative (ADV), which is something FoLiA/FLAT's suggestion-for-correction mechanism would be able to provide already (but another shortcut listing alternatives might be appropriate here too).

luutuntin commented 5 years ago

Thank you, the viewing part for alternative inline annotations looks great. Yes, we want to be able to change the alternative annotation in FLAT, and in general, it is desirable that annotators can edit any information they have entered.

proycon commented 5 years ago

it is desirable that annotators can edit any information they have entered.

Indeed, I completely agree.

luutuntin commented 5 years ago

image

In this example, I can see that both annotations of domain and sense are grouped together under the same <alt> element, which has its own xml:id (e.g. example.p.1.s.1.w.5.alt.1). Currently, if I try to add alternative lemma and pos at the same time by one click of OK at the bottom of Annotation Editor in FLAT, each of them will be put in a separate <alt> element, which doesn't have any xml:id. I just want to make sure that you are aware of this. (And I definitely prefer the behavior in your example, which is consistent with the FoLiA documentation.)

proycon commented 5 years ago

Right, that is a good point indeed. The current edit capabilities don't allow grouping alternatives yet, but I agree that grouping them when they are edited in the same edit session would be a good solution. I'll implement that.

luutuntin commented 5 years ago

Great.