0.1.3 • Published 3 years ago

vue-sequence-labeling-box v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-sequence-labeling-box

A component for sequence labeling developed via Vue2

Concept

// initial annotations:
[
  {
    word: "James",
    label: "name",
  },
];

// latest annotations:
[
  {
    word: "James",
    label: "name",
  },
  {
    word: "basketball",
    label: "sports",
  },
  {
    word: "🏀 ",
    label: "emoji",
  },
];

Installation

npm install --save vue-sequence-labeling-box

Demo

Try!

ES6 Modules

import sequenceLabelingBox from "vue-sequence-labeling-box";
<sequence-labeling-box v-model="annotations" :text="text" />

Props API

PropsDescriptionTypeMust RequiredDefault
v-model{ "word": "James", "label": "name" },{ "word": "basketball", "label": "sports" },...annotation[]yes[]
texttextStringyes
colortheme colorStringno'#577eba'
maxHeightmax height of sequence labeling boxString or nullnonull
# install dependencies
npm install
# compiles and hot-reloads for development
npm run serve
# compiles and minifies for production
npm run build