mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
47 lines
1.9 KiB
47 lines
1.9 KiB
{% extends "annotation/annotation_base.html" %}
|
|
{% load static %}
|
|
|
|
{% block annotation-area %}
|
|
<div class="card">
|
|
<header class="card-header">
|
|
<div class="card-header-title" style="padding:1.5rem;background-color:royalblue;">
|
|
<div class="field is-grouped is-grouped-multiline">
|
|
<div class="control" v-for="(label, item) in labels">
|
|
<div class="tags has-addons">
|
|
<a class="tag is-medium"
|
|
v-bind:style="{ color: label.text_color, backgroundColor: label.background_color }"
|
|
v-on:click="addLabel(label.id)"
|
|
v-shortkey.once="[ label.shortcut ]"
|
|
@shortkey="addLabel(label.id)">
|
|
[[ label.text ]]
|
|
</a>
|
|
<span class="tag is-medium">[[ label.shortcut ]]</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="card-content" v-if="items.length">
|
|
<div class="field is-grouped is-grouped-multiline">
|
|
<div class="control" v-for="(annotation, index) in items[cur].labels">
|
|
<div class="tags has-addons">
|
|
<span class="tag is-dark">
|
|
[[ annotation.label.text ]]
|
|
<button class="delete is-small" v-on:click="deleteLabel(index)"></button>
|
|
</span>
|
|
<span class="tag is-primary" v-if="annotation.label.prob">[[ annotation.label.prob ]]</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr v-if="items[cur].labels.length">
|
|
<div class="content">
|
|
[[ items[cur].text ]]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<script type="text/javascript" src="{% static 'bundle/document_classification.js' %}"></script>
|
|
{% endblock %}
|