Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K<n<100K
License:
Update news_sentiment_newsmtsc.py
Browse files- news_sentiment_newsmtsc.py +6 -18
news_sentiment_newsmtsc.py
CHANGED
@@ -79,24 +79,12 @@ class NewsSentimentNewsmtsc(datasets.GeneratorBasedBuilder):
|
|
79 |
# This defines the different columns of the dataset and their types
|
80 |
features=AllowNoFurtherMentionsFeatures(
|
81 |
{
|
82 |
-
"
|
83 |
-
"
|
84 |
-
"
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
"to": datasets.Value("uint32"),
|
89 |
-
"mention": datasets.Value("string"),
|
90 |
-
"polarity": datasets.Value("float"),
|
91 |
-
"further_mentions": datasets.features.Sequence(
|
92 |
-
{
|
93 |
-
"from": datasets.Value("uint32"),
|
94 |
-
"to": datasets.Value("uint32"),
|
95 |
-
"mention": datasets.Value("string"),
|
96 |
-
},
|
97 |
-
),
|
98 |
-
},
|
99 |
-
),
|
100 |
},
|
101 |
),
|
102 |
homepage=_HOMEPAGE,
|
|
|
79 |
# This defines the different columns of the dataset and their types
|
80 |
features=AllowNoFurtherMentionsFeatures(
|
81 |
{
|
82 |
+
"mention": datasets.Value("string"),
|
83 |
+
"polarity": datasets.Value("int32"),
|
84 |
+
"from": datasets.Value("int32"),
|
85 |
+
"to": datasets.Value("int32"),
|
86 |
+
"sentence": datasets.Value("string"),
|
87 |
+
"id": datasets.Value("string")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
},
|
89 |
),
|
90 |
homepage=_HOMEPAGE,
|