{%- extends "base.html" -%} {%- block title -%} {{strings['base3']}}: {{strings['contextual1']}} {%- endblock title -%} {%- block content %}

{{strings['contextual1']}}

{{strings['contextual2']}}

{%- if results %} {%- else %} {% endif -%}

{{strings['contextual13']}}

{%- for m in elmo_models %} {%- endfor %}

{{strings['contextual9']}}

{%- for m in all_layers %} {%- endfor %}
{% if results -%}

{{strings['contextual4']}}

({{ strings[elmo_models[model]] }})

{{strings['frequency1']}}

{% for word in header -%} {% endfor -%} {%- for row in results %} {% for res in results[row] %} {% if res[1] != 'None' %} {% else %} {% endif %} {%- endfor -%} {%- endfor -%}
{% if (word[0]|length > 1) and (word[1] not in ['ADP', 'CCONJ', 'PRON', 'AUX', 'DET', 'SCONJ', 'PART'])%}

{{ word[0] }}

{%- else %}

{{ word[0] }}

{% endif -%}
{{ res[0] }} {{ res[0] }}
{% if elmo_hist|length > 1 -%}

{{strings['contextual10']}}

{% for el in elmo_hist[:-1]|reverse -%}

{{strings['contextual15']}}: {{ strings[el[-1]]}}

{% for word in el[0] -%} {% endfor -%} {%- for row in el[1] %} {% for res in el[1][row] %} {% if res != 'None' and res[1] != 'None'%} {% else %} {% endif %} {%- endfor -%} {%- endfor -%}
{% if (word[0]|length > 1) and (word[1] not in ['ADP', 'CCONJ', 'PRON', 'AUX', 'DET', 'SCONJ', 'PART'])%}

{{ word[0] }}

{%- else %}

{{ word[0] }}

{% endif -%}
{{ res[0] }} {{ res[0] }}
{%- endfor %} {%- endif %} {% endif -%} {% if error %} {% if "misconfiguration" in error %}

{{strings['contextual0']}}

{% else %}

{{ error }}

{% endif -%} {% endif -%}

{{strings['contextual6']}}

{{strings['contextual7']}}

{{strings['contextual8']}}

{%- endblock %}