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
CHANGED
@@ -123,7 +123,7 @@ class NewsSentimentNewsmtsc(datasets.GeneratorBasedBuilder):
|
|
123 |
with open(filepath, encoding="utf-8") as f:
|
124 |
for row in f:
|
125 |
data = json.loads(row)
|
126 |
-
if split == "test":
|
127 |
-
|
128 |
yield data["id"], data
|
129 |
|
|
|
123 |
with open(filepath, encoding="utf-8") as f:
|
124 |
for row in f:
|
125 |
data = json.loads(row)
|
126 |
+
#if split == "test":
|
127 |
+
# data["polarity"] = None
|
128 |
yield data["id"], data
|
129 |
|