File tree Expand file tree Collapse file tree 1 file changed +42
-21
lines changed Expand file tree Collapse file tree 1 file changed +42
-21
lines changed Original file line number Diff line number Diff line change 16
16
17
17
参考[ doccano官方文档] ( https://github.com/doccano/doccano ) 完成doccano的安装与初始配置。
18
18
19
+ ** 以下标注示例用到的环境配置:**
20
+
21
+ - doccano 1.6.2
22
+
19
23
<a name =" 项目创建 " ></a >
20
24
21
25
## 2. 项目创建
@@ -79,8 +83,6 @@ Relation类型标签构建示例:
79
83
80
84
#### 4.2 构建分类式任务标签
81
85
82
- 分类式任务支持句子级情感倾向分类,以及多类别分类、多标签分类等多种类型的文本分类任务。
83
-
84
86
添加分类类别标签:
85
87
86
88
<div align =" center " >
@@ -159,33 +161,52 @@ Relation类型标签构建示例:
159
161
160
162
``` text
161
163
{
162
- "id": 36,
163
- "text": "2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌",
164
- "relations": [],
164
+ "id": 38,
165
+ "text": "百科名片你知道我要什么,是歌手高明骏演唱的一首歌曲,1989年发行,收录于个人专辑《丛林男孩》中",
166
+ "relations": [
167
+ {
168
+ "id": 20,
169
+ "from_id": 51,
170
+ "to_id": 53,
171
+ "type": "歌手"
172
+ },
173
+ {
174
+ "id": 21,
175
+ "from_id": 51,
176
+ "to_id": 55,
177
+ "type": "发行时间"
178
+ },
179
+ {
180
+ "id": 22,
181
+ "from_id": 51,
182
+ "to_id": 54,
183
+ "type": "所属专辑"
184
+ }
185
+ ],
165
186
"entities": [
166
187
{
167
- "id": 47 ,
168
- "start_offset": 0 ,
169
- "end_offset": 6 ,
170
- "label": "时间 "
188
+ "id": 51 ,
189
+ "start_offset": 4 ,
190
+ "end_offset": 11 ,
191
+ "label": "作品名 "
171
192
},
172
193
{
173
- "id": 48 ,
174
- "start_offset": 6 ,
175
- "end_offset": 23 ,
176
- "label": "赛事名称 "
194
+ "id": 53 ,
195
+ "start_offset": 15 ,
196
+ "end_offset": 18 ,
197
+ "label": "人物名 "
177
198
},
178
199
{
179
- "id": 49 ,
180
- "start_offset": 28 ,
181
- "end_offset": 31 ,
182
- "label": "选手 "
200
+ "id": 54 ,
201
+ "start_offset": 42 ,
202
+ "end_offset": 46 ,
203
+ "label": "作品名 "
183
204
},
184
205
{
185
- "id": 50 ,
186
- "start_offset": 32 ,
187
- "end_offset": 39 ,
188
- "label": "得分 "
206
+ "id": 55 ,
207
+ "start_offset": 26 ,
208
+ "end_offset": 31 ,
209
+ "label": "时间 "
189
210
}
190
211
]
191
212
}
You can’t perform that action at this time.
0 commit comments