{% for doc_item in documents %}
{% set total = doc_item['total_toponyms'] %}
{% set annotated = doc_item['annotated_toponyms'] %}
{% if total > 0 %}
{% set percentage = (annotated / total * 100) | round(2) %}
{% else %}
{% set percentage = 0 %}
{% endif %}