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.
46 lines
867 B
46 lines
867 B
<template>
|
|
<label-select-single
|
|
v-if="singleLabel"
|
|
:annotations="annotations"
|
|
:labels="labels"
|
|
@add="$emit('add', $event)"
|
|
@remove="$emit('remove', $event)"
|
|
/>
|
|
<label-select-multi
|
|
v-else
|
|
:annotations="annotations"
|
|
:labels="labels"
|
|
@add="$emit('add', $event)"
|
|
@remove="$emit('remove', $event)"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import LabelSelectSingle from './singleLabel/LabelSelect.vue'
|
|
import LabelSelectMulti from './multiLabel/LabelSelect.vue'
|
|
|
|
export default {
|
|
components: {
|
|
LabelSelectSingle,
|
|
LabelSelectMulti
|
|
},
|
|
|
|
props: {
|
|
labels: {
|
|
type: Array,
|
|
default: () => [],
|
|
required: true
|
|
},
|
|
annotations: {
|
|
type: Array,
|
|
default: () => ([]),
|
|
required: true
|
|
},
|
|
singleLabel: {
|
|
type: Boolean,
|
|
default: false,
|
|
required: true
|
|
}
|
|
}
|
|
}
|
|
</script>
|