vue-text-annotation-box
A vue2 component for manual text annotation
Concept
[
{
word: "James",
label: "name",
},
];
[
{
word: "James",
label: "name",
},
{
word: "basketball",
label: "sports",
},
{
word: "🏀 ",
label: "emoji",
},
];
Installation
npm install --save vue-text-annotation-box
Demo
Try!
ES6 Modules
import textAnnotationBox from "vue-text-annotation-box";
<text-annotation-box v-model="annotations" :text="text" />
Props API
Props | Description | Type | Must Required | Default |
---|
v-model | [{ "word": "James", "label": "name" },{ "word": "basketball", "label": "sports" },...] | annotation[] | yes | [] |
text | text | String | yes | |
color | theme color | String | no | '#577eba' |
maxHeight | max height of text annotation box | String or null | no | null |
npm install
npm run serve
npm run build