Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Multilinguality:
monolingual
Size Categories:
1M<n<10M
Language Creators:
crowdsourced
Annotations Creators:
crowdsourced
Source Datasets:
original
ArXiv:
License:
Fixed script
Browse files- dataset_infos.json +2 -2
- polarity.py +3 -3
dataset_infos.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f9ae49bf4c60cb93811bd622838e4d84457deda2f31eb2ffd99c583fd45b232a
|
3 |
+
size 2062
|
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 AmazonPolarityConfig(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 AmazonPolarity(datasets.BuilderConfig):
|
49 |
"""BuilderConfig for AmazonPolarity."""
|
50 |
|
51 |
def __init__(self, **kwargs):
|
|
|
54 |
Args:
|
55 |
**kwargs: keyword arguments forwarded to super.
|
56 |
"""
|
57 |
+
super(AmazonPolarity, self).__init__(**kwargs)
|
58 |
|
59 |
|
60 |
class AmazonPolarity(datasets.GeneratorBasedBuilder):
|
|
|
63 |
VERSION = datasets.Version("3.0.0")
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
+
AmazonPolarity(
|
67 |
name="polarity", version=VERSION, description="Amazon Polarity Classification Dataset."
|
68 |
),
|
69 |
]
|