{% extends 'base.html' %} {% block title %}Visualisasi{% endblock %} {% block content %}
Distribusi Sentimen
{% if dist_pred %}
{% for label, count in dist_pred %}
{{ count }}
{{ label }}
{% endfor %}
{% else %}

Belum ada data prediksi.

{% endif %}
Top 20 Kata Terbanyak (Dataset)
{% if top_words %}
{% else %}

Data word count belum tersedia.

{% endif %}
{% if top_words %}
Tabel Word Count (Dataset)
{% for w in top_words %} {% endfor %}
#KataFrekuensiSentimen DominanDistribusi
{{ loop.index }} {{ w.kata }} {{ w.frekuensi }} {{ w.sentimen_dominan }}
+{{ w.pct_positif }}% / -{{ w.pct_negatif }}% / ~{{ w.pct_netral }}%
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}