Kosuke-Yamada
commited on
Commit
·
20c5009
1
Parent(s):
1d0c339
modify dataset file
Browse files- ner-wikinews-dataset.py +1 -1
ner-wikinews-dataset.py
CHANGED
@@ -134,7 +134,7 @@ class NerWikinewsDataset(datasets.GeneratorBasedBuilder):
|
|
134 |
{
|
135 |
"name": result["value"]["text"],
|
136 |
"span": [result["value"]["start"], result["value"]["end"]],
|
137 |
-
"type": result["value"]["labels"],
|
138 |
}
|
139 |
)
|
140 |
outputs.append(
|
|
|
134 |
{
|
135 |
"name": result["value"]["text"],
|
136 |
"span": [result["value"]["start"], result["value"]["end"]],
|
137 |
+
"type": result["value"]["labels"][0],
|
138 |
}
|
139 |
)
|
140 |
outputs.append(
|