ramybaly
commited on
Commit
·
6f9d7b5
1
Parent(s):
7b2f59a
fixed bug in dataset script
Browse files
nerd.py
CHANGED
|
@@ -68,12 +68,12 @@ class NERD(datasets.GeneratorBasedBuilder):
|
|
| 68 |
{
|
| 69 |
"id": datasets.Value("string"),
|
| 70 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
| 71 |
-
"
|
| 72 |
datasets.features.ClassLabel(
|
| 73 |
names=['O', 'art', 'building', 'event', 'location', 'organization', 'other', 'person', 'product']
|
| 74 |
)
|
| 75 |
),
|
| 76 |
-
"
|
| 77 |
datasets.features.ClassLabel(
|
| 78 |
names=[
|
| 79 |
'O',
|
|
|
|
| 68 |
{
|
| 69 |
"id": datasets.Value("string"),
|
| 70 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
| 71 |
+
"ner_tags": datasets.Sequence(
|
| 72 |
datasets.features.ClassLabel(
|
| 73 |
names=['O', 'art', 'building', 'event', 'location', 'organization', 'other', 'person', 'product']
|
| 74 |
)
|
| 75 |
),
|
| 76 |
+
"ner_tags_fine": datasets.Sequence(
|
| 77 |
datasets.features.ClassLabel(
|
| 78 |
names=[
|
| 79 |
'O',
|