-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relations annotation added to SequenceLabeling task #1384
Conversation
- tentativo di creazione pagine di gestione tipi di relazioni
- lavori in corso sull'effettivo salvataggio dei link
…ellazione delle relazioni
aggiunte le api di lettura/inserimento relazioni
rimossa la modifica del tipo di relazione
# Conflicts: # app/api/models.py # backend/api/migrations/0009_annotations_relations_20210421_1445.py # backend/api/serializers.py # backend/api/urls.py # backend/api/views/annotation_relations.py # backend/api/views/relation_types.py # frontend/pages/projects/_id/sequence-labeling/index.vue # frontend/plugins/services.ts
Thanks. Please pass CI. |
Done some modification, I need CI approval run tests on dockerhub. |
All test are green! To do the dockerhub part i had to change line 25 in |
Thanks! Merged. |
In my team we have tried this feature, but we can't seem to find the relation in the exported data. |
The data are stored in the database but still not included in the export. I think the maintainers should study a clever format to add this data to the export. |
Thanks for the quick reply! |
With this PR we introduce a new feature: the relation between annotations.
Each annotation can be linked to another with a "relation" (or link) which has a direction and a type (types can be added/modified in the "relations" page). Only one relation can exists from the same pair of source and target.
The relations are drawn as colored arrows.
How to use it
To try the new feature you should, first, create some relation type in the "relations" page. The relation semantics is free.
Then, to create a relation you can click the R icon (a new icon at the top right of any annotation).
This will open a menu showing the list of the outgoing relations (if any) and the option "new relation...".
Here the user can delete any existing relation by clicking the trashcan icon.
If the "new relation..." is selected the menu will ask to choose the relation type.
After that the R icon from the source annotation is shown in a blue background, and the other annotation, at the mouse hover, will show a + (plus) icon. Just click any + icon to select the relation target. This will create the relation and an arrow will appear at screen.
To abort the relation operation the user can click the R button again whenever he/she wants.