Kosuke-Yamada commited on
Commit
49d75a9
1 Parent(s): e826634

modify features

Browse files
Files changed (1) hide show
  1. ner-wikipedia-dataset.py +2 -2
ner-wikipedia-dataset.py CHANGED
@@ -98,7 +98,7 @@ class NerWikipediaDataset(datasets.GeneratorBasedBuilder):
98
  {
99
  "curid": datasets.Value("string"),
100
  "text": datasets.Value("string"),
101
- "entities": datasets.Sequence(
102
  {
103
  "name": datasets.Value(dtype="string"),
104
  "span": datasets.Sequence(
@@ -106,7 +106,7 @@ class NerWikipediaDataset(datasets.GeneratorBasedBuilder):
106
  ),
107
  "type": datasets.Value(dtype="string"),
108
  }
109
- ),
110
  # These are the features of your dataset like images, labels ...
111
  }
112
  ), # Here we define them above because they are different between the two configurations
 
98
  {
99
  "curid": datasets.Value("string"),
100
  "text": datasets.Value("string"),
101
+ "entities": [
102
  {
103
  "name": datasets.Value(dtype="string"),
104
  "span": datasets.Sequence(
 
106
  ),
107
  "type": datasets.Value(dtype="string"),
108
  }
109
+ ],
110
  # These are the features of your dataset like images, labels ...
111
  }
112
  ), # Here we define them above because they are different between the two configurations