various cross-reading prototypes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
809 B

{% extends "base.html" %}
{% block title %}{% endblock %}
{% block search %}
{% endblock %}
{% block results %}
{% if mapping_type == 'tfidf-mapping' %}
<div id="mappings">
{% for value, word in mappings %}
<strong class="query" style="font-size:{{ 100 + value }}%;"> <a href="/?q={{ word }}">{{ word }}</a> </strong>
{% endfor %}
</div>
{% elif mapping_type == 'idf' %}
<div id="list">
{% for value, word in mappings %}
<strong class="query"> <a href="/?q={{ word }}">{{ word }}</a></strong> ({{ value }})<br>
{% endfor %}
</div>
{% else %}
<div id="list">
{% for value, word in mappings %}
<strong class="query" > <a href="/?q={{ word }}">{{ word }}</a></strong> ({{ value }})<br>
{% endfor %}
</div>
{% endif %}
{% endblock %}
{% block suggestions %}
{% endblock %}