Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
1M<n<10M
ArXiv:
License:
Fixed script
Browse files- polarity.py +3 -3
polarity.py
CHANGED
@@ -45,7 +45,7 @@ _URLs = {
|
|
45 |
}
|
46 |
|
47 |
|
48 |
-
class
|
49 |
"""BuilderConfig for AmazonPolarity."""
|
50 |
|
51 |
def __init__(self, **kwargs):
|
@@ -54,7 +54,7 @@ class AmazonPolarity(datasets.BuilderConfig):
|
|
54 |
Args:
|
55 |
**kwargs: keyword arguments forwarded to super.
|
56 |
"""
|
57 |
-
super(
|
58 |
|
59 |
|
60 |
class AmazonPolarity(datasets.GeneratorBasedBuilder):
|
@@ -63,7 +63,7 @@ class AmazonPolarity(datasets.GeneratorBasedBuilder):
|
|
63 |
VERSION = datasets.Version("3.0.0")
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
-
|
67 |
name="polarity", version=VERSION, description="Amazon Polarity Classification Dataset."
|
68 |
),
|
69 |
]
|
|
|
45 |
}
|
46 |
|
47 |
|
48 |
+
class PolarityConfig(datasets.BuilderConfig):
|
49 |
"""BuilderConfig for AmazonPolarity."""
|
50 |
|
51 |
def __init__(self, **kwargs):
|
|
|
54 |
Args:
|
55 |
**kwargs: keyword arguments forwarded to super.
|
56 |
"""
|
57 |
+
super(PolarityConfig, self).__init__(**kwargs)
|
58 |
|
59 |
|
60 |
class AmazonPolarity(datasets.GeneratorBasedBuilder):
|
|
|
63 |
VERSION = datasets.Version("3.0.0")
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
+
PolarityConfig(
|
67 |
name="polarity", version=VERSION, description="Amazon Polarity Classification Dataset."
|
68 |
),
|
69 |
]
|