Browse Source

Use LabelGroup in demo page

pull/1263/head
Hironsan 3 years ago
parent
commit
4e20d80e8b
1 changed files with 5 additions and 3 deletions
  1. 8
      frontend/pages/demo/sentiment-analysis/index.vue

8
frontend/pages/demo/sentiment-analysis/index.vue

@ -5,13 +5,15 @@
<v-col cols="12" md="9">
<v-card>
<v-card-title>
<text-classification
<label-group
:labels="items"
:annotations="currentDoc.annotations"
single-label="true"
@add="addLabel"
@remove="removeLabel"
/>
</v-card-title>
<v-divider />
<v-card-text class="title">
{{ currentDoc.text }}
</v-card-text>
@ -27,13 +29,13 @@
<script>
import ListMetadata from '@/components/tasks/metadata/ListMetadata'
import TextClassification from '@/components/tasks/textClassification/TextClassification'
import LabelGroup from '@/components/tasks/textClassification/LabelGroup'
export default {
layout: 'demo',
components: {
TextClassification,
LabelGroup,
ListMetadata
},

Loading…
Cancel
Save