mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
39 lines
1.6 KiB
39 lines
1.6 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 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="annotate(label.id)"
|
|
v-shortkey.once="[ label.shortcut ]"
|
|
@shortkey="annotate(label.id)">
|
|
[[ label.text ]]
|
|
</a>
|
|
<span class="tag is-medium">[[ label.shortcut ]]</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="card-content">
|
|
<div class="content" v-if="docs[pageNumber] && annotations[pageNumber]">
|
|
<annotator ref="annotator"
|
|
v-bind:labels="labels"
|
|
v-bind:entity-positions="annotations[pageNumber]"
|
|
v-bind:text="docs[pageNumber].text"
|
|
@remove-label="removeLabel"
|
|
@add-label="addLabel"></annotator>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<script type="text/javascript" src="{% static 'bundle/sequence_labeling.js' %}"></script>
|
|
{% endblock %}
|