{% extends "_base.html" %} {% block header_javascripts %} {% endblock %} {% block content %} {% if constraint_id in constraints.keys() %} {% set number_of_constraints_to_annotate = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_annotate", "equalto", true) | list | length) %} {% set constraint = constraints[constraint_id] %} {% set navigation_next = constraint_id | get_next_key(constraints) %} {% set navigation_previous = constraint_id | get_previous_key(constraints) %} {% set text_ID1 = constraint.data.id_1 %} {% set text_ID2 = constraint.data.id_2 %} {% set modification_disabled = (status.state not in ["ANNOTATION_WITH_UPTODATE_MODELIZATION", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITHOUT_CONFLICTS", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITH_CONFLICTS"]) %}

Iteration ({{status.iteration_id}}): Annotations ({{number_of_constraints_to_annotate}} remaining)
Do you answer these two questions in the same way?

Text 1 ( delete = ) Text 2 ( delete = )
« {{ texts[text_ID1].text_preprocessed }} » « {{ texts[text_ID2].text_preprocessed }} »
info info
{% if constraint.to_fix_conflict == true %} priority_high This contraint is involved in a conflict priority_high
{% endif %} To review:

Get more details...

The ID of the project: {{project_id}}
The computer decision (clustering) was: {% if text_ID1 not in clusters.keys() or text_ID2 not in clusters.keys() %} help_outline info {% elif clusters[text_ID1] == clusters[text_ID2] %} info {% else %} info {% endif %}
Your previous annotation was: {% if (constraint.constraint_type_previous | length) == 0 %} No history available. info {% else %} {% if constraint.constraint_type_previous[-1] == "MUST_LINK" %} {% elif constraint.constraint_type_previous[-1] == "CANNOT_LINK" %} {% else %} help_outline {% endif %} info {% endif %}
The inference according to other annotations is: {% if text_ID1 not in modelization.keys() or text_ID2 not in modelization.keys() %} No modelization available. info {% elif text_ID1 in modelization[text_ID2].MUST_LINK %} info {% elif text_ID1 in modelization[text_ID2].CANNOT_LINK %} info {% else %} help_outline info {% endif %}

Local graph of constraints...

{% if status.state_details.step == "ANNOTATION" %} {% if (status.state_details.modelization_status == "OUTDATED") %}
warning Modelization is outdated{% if status.state_details.conflict_status == "TRUE" %} with some conflits{% endif %}. Please run modelization update after your modifications to check project consistency and constraints conflicts.
{% endif %}

{% endif %}
{% else %}

Error: 404

In project with id '{{ project_id }}', the constraint with id '{{ constraint_id }}' to annotate doesn't exist.
{% endif %} {% endblock %}