You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://codesandbox.io/s/vue2-text-annotation-yt6cc?file=/src/App.vue)
34
34
35
-
### labeled data
35
+
### Labeled data
36
36
37
37
```js
38
38
[
39
39
{
40
-
content:"Vue.js",
41
-
category:"framework",
40
+
content:"Vue.js",
41
+
annotation:"framework",
42
42
start:0,
43
43
end:6,
44
44
},
45
45
{
46
-
content:"Evan You",
47
-
category:"name",
46
+
content:"Evan You",
47
+
annotation:"name",
48
48
start:521,
49
49
end:529,
50
50
},
51
51
{
52
-
content:"JavaScript",
53
-
category:"language",
52
+
content:"JavaScript",
53
+
annotation:"language",
54
54
start:24,
55
55
end:34,
56
56
}
57
57
]
58
58
```
59
-
The labeled data generated by `vue2-text-annotation` can be used as the training data set of Natural Language Processing (NLP) model.
59
+
The labeled data generated by `vue2-text-annotation` can be used to build a data set of Natural Language Processing (NLP) model.
60
60
61
61
### Usage
62
62
```js
@@ -79,7 +79,7 @@ export default {
79
79
text: "Vue.js is a progressive JavaScript framework, which is used to build UIs (User Interfaces) and SPAs (Single-page Applications). This framework is famous for its fast-paced learning curve. It is such an easy to learn and approachable library that with the knowledge of HTML, CSS, and JavaScript, we can start building web applications in Vue.js. The fast learning curve is kind of a signature of this framework. It is a versatile framework for our need as a library or a full-fledged framework for building huge web apps.\nEvan You have created this framework. The idea of Evan You behind this framework is to build the best framework by combining the best features from already existing Angular and react Frameworks. Before building Vue.js, Evan You was working at Google. Inc and worked on Angular based projects. So, he came up with the idea of building his own framework. He picked the best parts of Angular, like template syntax, easy to use, and picked the best parts of React as well, like two-way data binding, the concept of props, component-based approach, and combined them to make a new framework Vue.js better than both of them.",
80
80
textAnnotations: [{
81
81
content:"Vue.js",
82
-
category:"framework",
82
+
annotation:"framework",
83
83
start:0,
84
84
end:6,
85
85
}]
@@ -89,7 +89,7 @@ export default {
89
89
```
90
90
91
91
# 2. Data masking
92
-
Data masking mode in `vue2-text-annotation`is used for labeling sensitive data and creating new text that hides (masks) sensitive information.
92
+
Data masking is used to label and hide sensitive data and create new text that hides (masks) sensitive information.
93
93
94
94
### Demo
95
95
Before data masking: <br/>
@@ -107,7 +107,7 @@ After data masking: <br/>
107
107
```js
108
108
<template>
109
109
<TextAnnotation
110
-
v-model="dataSet"
110
+
v-model="textAnnotations"
111
111
data-masking="true"
112
112
:text="text"
113
113
@afterDataMasking="updateTextAfterDataMasking"
@@ -123,7 +123,7 @@ export default {
123
123
},
124
124
data() {
125
125
return {
126
-
dataSet: [],
126
+
textAnnotations: [],
127
127
text:
128
128
"James lives at 4 Chome-2-8 Shibakoen, his phone number is 080080080, His full name is Lebron James",
0 commit comments