Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
100K<n<1M
License:
napsternxg
commited on
Commit
•
2fd0c64
1
Parent(s):
39c7f3b
Update nyt_ingredients.py
Browse files- nyt_ingredients.py +16 -2
nyt_ingredients.py
CHANGED
@@ -79,8 +79,22 @@ class NYTIngredients(datasets.GeneratorBasedBuilder):
|
|
79 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
80 |
"index": datasets.Sequence(datasets.Value("string")),
|
81 |
"lengthGroup": datasets.Sequence(datasets.Value("string")),
|
82 |
-
"isCapitalized": datasets.Sequence(
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
"label": datasets.Sequence(
|
85 |
datasets.features.ClassLabel(
|
86 |
names=[
|
|
|
79 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
80 |
"index": datasets.Sequence(datasets.Value("string")),
|
81 |
"lengthGroup": datasets.Sequence(datasets.Value("string")),
|
82 |
+
"isCapitalized": datasets.Sequence(
|
83 |
+
datasets.features.ClassLabel(
|
84 |
+
names=[
|
85 |
+
"NoCAP",
|
86 |
+
"YesCAP"
|
87 |
+
]
|
88 |
+
)
|
89 |
+
),
|
90 |
+
"insideParenthesis": datasets.Sequence(
|
91 |
+
datasets.features.ClassLabel(
|
92 |
+
names=[
|
93 |
+
"NoPAREN",
|
94 |
+
"YesPAREN",
|
95 |
+
]
|
96 |
+
)
|
97 |
+
),
|
98 |
"label": datasets.Sequence(
|
99 |
datasets.features.ClassLabel(
|
100 |
names=[
|