Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
100K<n<1M
License:
napsternxg
commited on
Commit
•
673a510
1
Parent(s):
098daae
Update nyt_ingredients.py
Browse files- nyt_ingredients.py +7 -7
nyt_ingredients.py
CHANGED
@@ -47,25 +47,25 @@ _URLS = {
|
|
47 |
import json
|
48 |
|
49 |
|
50 |
-
class
|
51 |
-
"""The
|
52 |
|
53 |
def __init__(self, **kwargs):
|
54 |
-
"""BuilderConfig for
|
55 |
Args:
|
56 |
**kwargs: keyword arguments forwarded to super.
|
57 |
"""
|
58 |
super(NYTIngedientsConfig, self).__init__(**kwargs)
|
59 |
|
60 |
|
61 |
-
class
|
62 |
-
"""The
|
63 |
|
64 |
BUILDER_CONFIGS = [
|
65 |
-
|
66 |
name="nyt_ingredients",
|
67 |
version=datasets.Version("1.0.0"),
|
68 |
-
description="The
|
69 |
),
|
70 |
]
|
71 |
|
|
|
47 |
import json
|
48 |
|
49 |
|
50 |
+
class NYTIngredientsConfig(datasets.BuilderConfig):
|
51 |
+
"""The NYT Ingredients Dataset."""
|
52 |
|
53 |
def __init__(self, **kwargs):
|
54 |
+
"""BuilderConfig for NYT Ingredients.
|
55 |
Args:
|
56 |
**kwargs: keyword arguments forwarded to super.
|
57 |
"""
|
58 |
super(NYTIngedientsConfig, self).__init__(**kwargs)
|
59 |
|
60 |
|
61 |
+
class NYTIngredients(datasets.GeneratorBasedBuilder):
|
62 |
+
"""The NYT Ingredients Dataset."""
|
63 |
|
64 |
BUILDER_CONFIGS = [
|
65 |
+
NYTIngredientsConfig(
|
66 |
name="nyt_ingredients",
|
67 |
version=datasets.Version("1.0.0"),
|
68 |
+
description="The NYT Ingredients Dataset",
|
69 |
),
|
70 |
]
|
71 |
|