{% extends "_base.html" %} {% block header_javascripts %} {% endblock %} {% block content %}

Iteration ({{status.iteration_id}}): Constraints synthesis

{% set number_of_remaining_texts = (texts.values() | selectattr("is_deleted", "equalto", false) | list | length) %} {% set number_of_deleted_texts = (texts.values() | selectattr("is_deleted", "equalto", true) | list | length) %} {% set number_of_texts = (number_of_remaining_texts + number_of_deleted_texts) %} {% set number_of_MUST_LINK_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", "MUST_LINK") | list | length) %} {% set number_of_CANNOT_LINK_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", "CANNOT_LINK") | list | length) %} {% set number_of_SKIP_constraints = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("constraint_type", "equalto", none) | list | length) %} {% set number_of_constraints = (number_of_MUST_LINK_constraints + number_of_CANNOT_LINK_constraints) %} {% set number_of_constraints_to_annotate = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_annotate", "equalto", true) | list | length) %} {% set number_of_constraints_to_review = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_review", "equalto", true) | list | length) %} {% set number_of_constraints_to_fix = (constraints.values() | selectattr("is_hidden", "equalto", false) | selectattr("to_fix_conflict", "equalto", true) | list | length) %} {% if status.state_details.step == "ANNOTATION" %} {% endif %}
The ID of the project: {{project_id}}
Number of texts: {{ number_of_remaining_texts }} texts info
Number of constraints: {{ number_of_constraints }} constraints {% if status.state_details.step == "ANNOTATION" %}
and {{ number_of_constraints_to_annotate }} need your annotation. {% endif %} info
{% if status.state_details.step == "ANNOTATION" %} {% set approbation_disabled = (status.state in ["ANNOTATION_WITH_UPTODATE_MODELIZATION"]) %} {% endif %}
Modelization state: {% if (status.state_details.modelization_status == "TODO") %} warning Modelization is empty. Please run modelization update. {% elif (status.state_details.modelization_status == "UPTODATE") %} done_all Modelization is up to date. Any modification will lead to an outdated modelization. You can approve your work if all annotations are done. {% elif (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. {% elif (status.state_details.modelization_status in ["PENDING", "WORKING"]) %} update Modelization update is in progress. Page will reload in a few moments. {% else %} error An unexpected modelization error occurred. Please check your project. {% endif %}
{% if status.state_details.step == "SAMPLING" %} Please finish sampling step to be able to perform annotation. {% elif status.state_details.step == "ANNOTATION" %} {% set has_conflicts = (status.state_details.conflict_status == "TRUE") %} {% if has_conflicts %} Please run modelization update to check project consistency and constraints conflicts. {% endif %} {% else %} Annotation step is finished and constraints have been approved. {% endif %}

List of constraints

{% set modification_disabled = (status.state not in ["ANNOTATION_WITH_UPTODATE_MODELIZATION", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITHOUT_CONFLICTS", "ANNOTATION_WITH_OUTDATED_MODELIZATION_WITH_CONFLICTS"]) %}
Sort by:
{% for constraint_id, constraint in constraints.items() %} {% endfor %}
Text 1 Constraint Text 2 Sampling
iteration
Last
update
To
annotate
To
review
To
fix
Go
to
« {{ texts[constraint.data.id_1].text_preprocessed }} » info « {{ texts[constraint.data.id_2].text_preprocessed }} » info {{ constraint.iteration_of_sampling }} {% if constraint.date_of_update is none %} Never {% else %} {{ constraint.date_of_update|timestamp_to_date }},
at {{ constraint.date_of_update|timestamp_to_hour }}. {% endif %}
{% if constraint.to_annotate == true %} question_mark {% endif %} {% if constraint.comment != "" %} info {% endif %} {% if constraint.to_fix_conflict == true %} priority_high {% elif constraint.constraint_type is not none %} done {% endif %}
{% endblock %}