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

Loading…
Cancel
Save