Datasets:
Update sd-nlp-non-tokenized.py
Browse filespanel_id changed to single value
- sd-nlp-non-tokenized.py +4 -4
sd-nlp-non-tokenized.py
CHANGED
|
@@ -97,7 +97,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
| 97 |
names=self._NER_LABEL_NAMES)
|
| 98 |
),
|
| 99 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 100 |
-
"panel_id": datasets.
|
| 101 |
}
|
| 102 |
)
|
| 103 |
elif self.config.name == "GENEPROD_ROLES":
|
|
@@ -125,7 +125,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
| 125 |
)
|
| 126 |
),
|
| 127 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 128 |
-
"panel_id": datasets.
|
| 129 |
}
|
| 130 |
)
|
| 131 |
elif self.config.name == "BORING":
|
|
@@ -136,7 +136,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
| 136 |
feature=datasets.ClassLabel(num_classes=len(self._BORING_LABEL_NAMES),
|
| 137 |
names=self._BORING_LABEL_NAMES)
|
| 138 |
),
|
| 139 |
-
"panel_id": datasets.
|
| 140 |
}
|
| 141 |
)
|
| 142 |
elif self.config.name == "PANELIZATION":
|
|
@@ -148,7 +148,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
|
|
| 148 |
names=self._PANEL_START_NAMES)
|
| 149 |
),
|
| 150 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 151 |
-
"panel_id": datasets.
|
| 152 |
}
|
| 153 |
)
|
| 154 |
|
|
|
|
| 97 |
names=self._NER_LABEL_NAMES)
|
| 98 |
),
|
| 99 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 100 |
+
"panel_id": datasets.Value("string"),
|
| 101 |
}
|
| 102 |
)
|
| 103 |
elif self.config.name == "GENEPROD_ROLES":
|
|
|
|
| 125 |
)
|
| 126 |
),
|
| 127 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 128 |
+
"panel_id": datasets.Value("string"),
|
| 129 |
}
|
| 130 |
)
|
| 131 |
elif self.config.name == "BORING":
|
|
|
|
| 136 |
feature=datasets.ClassLabel(num_classes=len(self._BORING_LABEL_NAMES),
|
| 137 |
names=self._BORING_LABEL_NAMES)
|
| 138 |
),
|
| 139 |
+
"panel_id": datasets.Value("string"),
|
| 140 |
}
|
| 141 |
)
|
| 142 |
elif self.config.name == "PANELIZATION":
|
|
|
|
| 148 |
names=self._PANEL_START_NAMES)
|
| 149 |
),
|
| 150 |
"tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
|
| 151 |
+
"panel_id": datasets.Value("string"),
|
| 152 |
}
|
| 153 |
)
|
| 154 |
|