Datasets:
ltg
/

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
pandas
File size: 9,948 Bytes
d896e0e
0cb677b
 
 
 
 
 
 
d896e0e
0cb677b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8197b0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1da5fe5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d896e0e
0cb677b
 
 
 
 
 
 
 
8197b0e
 
 
 
 
 
 
 
1da5fe5
 
 
 
 
 
 
 
d896e0e
 
 
 
 
 
 
 
 
 
 
5326d62
9859d38
d896e0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9859d38
 
 
 
 
cbb56f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d896e0e
 
 
 
 
5326d62
d896e0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
---
language:
- nb
size_categories:
- 10K<n<100K
task_categories:
- text-classification
pretty_name: NoReC_sentence
dataset_info:
- config_name: binary
  features:
  - name: id
    dtype: string
  - name: review
    dtype: string
  - name: sentiment
    dtype: int64
  splits:
  - name: train
    num_bytes: 504530
    num_examples: 3894
  - name: validation
    num_bytes: 90797
    num_examples: 701
  - name: test
    num_bytes: 76423
    num_examples: 583
  download_size: 419034
  dataset_size: 671750
- config_name: mixed
  features:
  - name: id
    dtype: string
  - name: review
    dtype: string
  - name: sentiment
    sequence: int64
  splits:
  - name: train
    num_bytes: 1069392
    num_examples: 8634
  - name: validation
    num_bytes: 192121
    num_examples: 1531
  - name: test
    num_bytes: 160492
    num_examples: 1272
  download_size: 833704
  dataset_size: 1422005
- config_name: ternary
  features:
  - name: id
    dtype: string
  - name: review
    dtype: string
  - name: sentiment
    dtype: int64
  splits:
  - name: train
    num_bytes: 914901
    num_examples: 7973
  - name: validation
    num_bytes: 165845
    num_examples: 1411
  - name: test
    num_bytes: 139828
    num_examples: 1181
  download_size: 745057
  dataset_size: 1220574
configs:
- config_name: binary
  data_files:
  - split: train
    path: binary/train-*
  - split: validation
    path: binary/validation-*
  - split: test
    path: binary/test-*
- config_name: mixed
  data_files:
  - split: train
    path: mixed/train-*
  - split: validation
    path: mixed/validation-*
  - split: test
    path: mixed/test-*
- config_name: ternary
  data_files:
  - split: train
    path: ternary/train-*
  - split: validation
    path: ternary/validation-*
  - split: test
    path: ternary/test-*
---
# Dataset Card for NoReC_sentence

<!-- Provide a quick summary of the dataset. -->

Sentence-level polarity classification of Norwegian sentences from reviews across mixed domains.

## Dataset Details

### Dataset Description

This is a dataset for sentence-level sentiment classification in Norwegian, derived from the fine-grained annotations of [NoReC_fine](https://github.com/ltgoslo/norec_fine). We here provide a version where the annotations have been aggregated at the sentence-level, by only keeping sentences that contain sentiment annotations of either positive or negative polarity (but not both), in addition to sentences having no sentiment at all (neutral).
Note that sentences that contained mixed polarity are excluded. The data comes with pre-defined train/dev/test splits. The data comes in three different versions: _binary_ (only positive or negative sentences), _ternary_ (additionally includes neutral examples), and _mixed_ (additionaly includes sentences with mixed polarity).

- **Curated by:** The [SANT](https://www.mn.uio.no/ifi/english/research/projects/sant/) project (Sentiment Analysis for Norwegian Text) at the [Language Technology Group](https://www.mn.uio.no/ifi/english/research/groups/ltg/) (LTG) at the University of Oslo
- **Funded by:** The [SANT](https://www.mn.uio.no/ifi/english/research/projects/sant/) is funded by the [Research Council of Norway](https://www.forskningsradet.no/en/) (NFR grant number 270908).
- **Shared by:** The [SANT](https://www.mn.uio.no/ifi/english/research/projects/sant/) project (Sentiment Analysis for Norwegian Text) at the [Language Technology Group](https://www.mn.uio.no/ifi/english/research/groups/ltg/) (LTG) at the University of Oslo
- **Language(s) (NLP):** Norwegian (Nokmål and Nynorsk)
- **License:** The data is distributed under a [Creative Commons Attribution-NonCommercial licence](https://creativecommons.org/licenses/by-nc/4.0/) (CC BY-NC 4.0). The licence is motivated by the need to block the possibility of third parties redistributing the orignal reviews for commercial purposes. Note that machine learned models, extracted lexicons, embeddings, and similar resources that are created on the basis of NoReC are not considered to contain the original data and so can be freely used also for commercial purposes despite the non-commercial condition.

### Dataset Sources

<!-- Provide the basic links for the dataset. -->

- **Repository:** [https://github.com/ltgoslo/norec_sentence](https://github.com/ltgoslo/norec_sentence)
- **Paper:** The underlying NoReC_fine dataset is described in the paper [A Fine-Grained Sentiment Dataset for Norwegian](https://aclanthology.org/2020.lrec-1.618/) by Øvrelid et al., published at LREC 2020. The aggregation to the sentence-level was first described in [Large-Scale Contextualised Language Modelling for Norwegian](https://aclanthology.org/2021.nodalida-main.4/) by Kutuzov et al. at NoDaLiDa 2021.

## Uses

The data is intended to be used for training and testing models for Norwegian sentence-level classification of polarity, either binary (positive / negative) or ternary (positive / negative / neutral).

## Dataset Structure

<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->

The data comes in three different versions: 
- Binary: only includes examples with positive or negative polarity
- Ternary: additionally includes neutral examples
- Mixed: additionaly includes examples with mixed (i.e. both positive and negative) polarity

Each example in the data comes with three fields: a uniqe identifier ('id'), the sentence itself ('review'), and the polarity label ('sentiment'). Depending on the dataset version used, the label can be 0 (negative), 1 (positive), or 2 (neutral). For the mixed version the sentiment label is a list, reflecting the fact that a sentence can be both positive or negative. See examples below for each the three dataset versions. 

Binary:
```
{'id': '000335-02-01', 'review': 'Til tider ufrivillig morsomt .', 'sentiment': 0}
{'id': '704010-01-01', 'review': 'Ekstremt vitalt', 'sentiment': 1}
```

Ternary:
```
{'id': '000335-02-01', 'review': 'Til tider ufrivillig morsomt .', 'sentiment': 0}
{'id': '704010-01-01', 'review': 'Ekstremt vitalt', 'sentiment': 1}
{'id': '000778-57-02', 'review': 'Del dine synspunkter i kommentarfeltet .', 'sentiment': 2}
```

Mixed:
```
{'id': '000335-02-01', 'review': 'Til tider ufrivillig morsomt .', 'sentiment': [0]}
{'id': '704010-01-01', 'review': 'Ekstremt vitalt', 'sentiment': [1]}
{'id': '000778-57-02', 'review': 'Del dine synspunkter i kommentarfeltet .', 'sentiment': [2]}
{'id': '004702-02-01', 'review': 'Forviklingskomedie med brodd og bismak .', 'sentiment': [0, 1]}
```

## Dataset Creation

### Curation Rationale

The aggregated annotations of NoReC_sentence are primarily intended for benchmarking purposes.

### Source Data

The sentence-level annotations are aggregated from the NoReC_fine dataset, which in turn comprises a subset of the documents in the [Norwegian Review Corpus](https://github.com/ltgoslo/norec) (NoReC), which contains full-text professional reviews collected from major Norwegian news sources and cover a range of different domains, including literature, movies, video games, restaurants, music and theater, in addition to product reviews across a range of categories. The review articles NoReC were originally donated by the media partners in the SANT project; the Norwegian Broadcasting Corporation (NRK), Schibsted Media Group and Aller Media. The data comprises reviews extracted from eight different Norwegian news sources: Dagbladet, VG, Aftenposten, Bergens Tidende, Fædrelandsvennen, Stavanger Aftenblad, DinSide.no and P3.no. In terms of publishing date the reviews of NoReC mainly cover the time span 2003–2019, although it also includes a handful of reviews dating back as far as 1998.

### Annotators

The original annotations of NoReC_fine that the sentence-level labels here are derived from, were originally created by hired annotators who were all BSc- or MSc-level students in the Language Technology study program at the Department of informatics, University of Oslo. 

#### Personal and Sensitive Information

<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->

The data does not contain information considered personal or sensitive.

### Recommendations

<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->

Results obtained on this data might not generalize to texts from other domains or genres. Any biases in the sentiments expressed by the original review authors may carry over to models trained on this data.

## Citation

<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->

**BibTeX:**
```
@InProceedings{KutBarVel21,
  author = {Andrey Kutuzov and Jeremy Barnes and Erik Velldal and Lilja {\O}vrelid and Stephan Oepen}, 
  title = {Large-Scale Contextualised Language Modelling for Norwegian},
  booktitle = {{Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa 2021)}},
  year = 2021
}

@InProceedings{OvrMaeBar20,
  author = {Lilja {\O}vrelid and Petter M{\ae}hlum and Jeremy Barnes and Erik Velldal},
  title = {A Fine-grained Sentiment Dataset for {N}orwegian},
  booktitle = {{Proceedings of the 12th Edition of the Language Resources and Evaluation Conference}},
  year = 2020,
  address = "Marseille, France, 2020"
}
```

**APA:**

[More Information Needed]


## Dataset Card Authors

Vladislav Mikhailov and Erik Velldal

## Dataset Card Contact

[email protected] and [email protected]