{% extends "base.html" %} {% block title %}Pattern {{pid}}{% endblock %} {% block caseid %}{{caseid}}{% endblock %} {% block content %}

Example ID: {{ex['label']}}.{{ex['idx']}}

{% for t in ex['tokens'] %} {% if 1 in ex['class'][loop.index0] and -1 in ex['class'][loop.index0] %} {{t}} {% elif -1 in ex['class'][loop.index0] %} {{t}} {% elif 1 in ex['class'][loop.index0] %} {{t}} {% else %} {{t}} {% endif %} {% if ex['class'][loop.index0]|length > 0 %} {% endif %} {% endfor %} {% if 'label' in ex %} (Label: {{ex['label']}}) {% endif %}

{{pos_rules|length}} positive pattern(s)
{% if pos_rules|length > 0%}
{% endif %}

{{neg_rules|length}} negative pattern(s)
{% if neg_rules|length > 0%}
{% endif %}
{% endblock %}