File size: 1,351 Bytes
fda57dd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
<p>
{% for token, label in token_labels %}<span class="highlight-{{ label }}">{{ token }}</span>{% endfor %}
</p>
<style>
.highlight-1 {
background: linear-gradient(90deg, transparent, rgba(255, 245, 235, 0.05), transparent);
}
.highlight-2 {
background: linear-gradient(90deg, transparent, rgba(254, 230, 206, 0.10), transparent);
}
.highlight-3 {
background: linear-gradient(90deg, transparent, rgba(253, 208, 162, 0.15), transparent);
}
.highlight-4 {
background: linear-gradient(90deg, transparent, rgba(253, 141, 60, 0.20), transparent);
}
.highlight-5 {
background: linear-gradient(90deg, transparent, rgba(241, 105, 19, 0.25), transparent);
}
.highlight-6 {
background: linear-gradient(90deg, transparent, rgba(217, 72, 1, 0.30), transparent);
}
.highlight-7 {
background: linear-gradient(90deg, transparent, rgba(127, 39, 4, 0.35), transparent);
}
.highlight-8 {
background: linear-gradient(90deg, transparent, rgba(127, 39, 4, 0.40), transparent);
}
.highlight-9 {
background: linear-gradient(90deg, transparent, rgba(127, 39, 4, 0.45), transparent);
}
.highlight-10 {
background: linear-gradient(90deg, transparent, rgba(127, 39, 4, 0.50), transparent);
}
</style>
|