fhamborg commited on
Commit
b9e6e05
1 Parent(s): e71d53e

Update news_sentiment_newsmtsc.py

Browse files
Files changed (1) hide show
  1. 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
- "primary_gid": datasets.Value("string"),
83
- "sentence_normalized": datasets.Value("string"),
84
- "targets": datasets.features.Sequence(
85
- {
86
- "Input.gid": datasets.Value("string"),
87
- "from": datasets.Value("uint32"),
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,