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
@@ -53,9 +53,6 @@ _URLS = {
|
|
53 |
|
54 |
class AllowNoFurtherMentionsFeatures(datasets.Features):
|
55 |
def encode_example(self, example):
|
56 |
-
for target in example["targets"]:
|
57 |
-
if "further_mentions" not in target:
|
58 |
-
target["further_mentions"] = []
|
59 |
return super().encode_example(example)
|
60 |
|
61 |
|
|
|
53 |
|
54 |
class AllowNoFurtherMentionsFeatures(datasets.Features):
|
55 |
def encode_example(self, example):
|
|
|
|
|
|
|
56 |
return super().encode_example(example)
|
57 |
|
58 |
|