Datasets:
Update magpie.py
Browse files
magpie.py
CHANGED
@@ -87,10 +87,11 @@ class Magpie(datasets.GeneratorBasedBuilder):
|
|
87 |
features = {feature: datasets.Value("string") for feature in self.config.features}
|
88 |
if self.config.name == "magpie":
|
89 |
features["annotation"] = datasets.features.Sequence(datasets.Value("uint8"))
|
|
|
90 |
else:
|
91 |
features["contains_noun"] = datasets.Value("bool")
|
92 |
features["nouns"] = datasets.features.Sequence(datasets.Value("string"))
|
93 |
-
|
94 |
return datasets.DatasetInfo(
|
95 |
description=_DESCRIPTION,
|
96 |
features=datasets.Features(features),
|
|
|
87 |
features = {feature: datasets.Value("string") for feature in self.config.features}
|
88 |
if self.config.name == "magpie":
|
89 |
features["annotation"] = datasets.features.Sequence(datasets.Value("uint8"))
|
90 |
+
features["pos_tags"] = datasets.features.Sequence(datasets.Value("string"))
|
91 |
else:
|
92 |
features["contains_noun"] = datasets.Value("bool")
|
93 |
features["nouns"] = datasets.features.Sequence(datasets.Value("string"))
|
94 |
+
features["pos_tags"] = datasets.Value("string")
|
95 |
return datasets.DatasetInfo(
|
96 |
description=_DESCRIPTION,
|
97 |
features=datasets.Features(features),
|