egilron commited on
Commit
0fe343b
0 Parent(s):

initial commit

Browse files
.gitattributes ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ # Audio files - uncompressed
37
+ *.pcm filter=lfs diff=lfs merge=lfs -text
38
+ *.sam filter=lfs diff=lfs merge=lfs -text
39
+ *.raw filter=lfs diff=lfs merge=lfs -text
40
+ # Audio files - compressed
41
+ *.aac filter=lfs diff=lfs merge=lfs -text
42
+ *.flac filter=lfs diff=lfs merge=lfs -text
43
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
44
+ *.ogg filter=lfs diff=lfs merge=lfs -text
45
+ *.wav filter=lfs diff=lfs merge=lfs -text
46
+ # Image files - uncompressed
47
+ *.bmp filter=lfs diff=lfs merge=lfs -text
48
+ *.gif filter=lfs diff=lfs merge=lfs -text
49
+ *.png filter=lfs diff=lfs merge=lfs -text
50
+ *.tiff filter=lfs diff=lfs merge=lfs -text
51
+ # Image files - compressed
52
+ *.jpg filter=lfs diff=lfs merge=lfs -text
53
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
54
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - 'no'
4
+ - nb
5
+ - nn
6
+ license: cc-by-nc-4.0
7
+ size_categories:
8
+ - 10K<n<100K
9
+ task_categories:
10
+ - token-classification
11
+ pretty_name: NoReC TSA
12
+ dataset_info:
13
+ - config_name: binary
14
+ features:
15
+ - name: idx
16
+ dtype: string
17
+ - name: tokens
18
+ sequence: string
19
+ - name: tsa_tags
20
+ sequence: string
21
+ splits:
22
+ - name: train
23
+ num_bytes: 2296476
24
+ num_examples: 8634
25
+ - name: validation
26
+ num_bytes: 411562
27
+ num_examples: 1531
28
+ - name: test
29
+ num_bytes: 346288
30
+ num_examples: 1272
31
+ download_size: 898904
32
+ dataset_size: 3054326
33
+ homepage: https://github.com/ltgoslo/norec_tsa
34
+ citation: "@InProceedings{OvrMaeBar20,\n author = {Lilja Øvrelid and Petter Mæhlum\
35
+ \ and Jeremy Barnes and Erik Velldal},\n title = {A Fine-grained Sentiment Dataset\
36
+ \ for {N}orwegian},\n booktitle = {{Proceedings of the 12th Edition of the Language\
37
+ \ Resources and Evaluation Conference}},\n year = 2020,\n address = \"Marseille,\
38
+ \ France, 2020\"\n}"
39
+ - config_name: intensity
40
+ features:
41
+ - name: idx
42
+ dtype: string
43
+ - name: tokens
44
+ sequence: string
45
+ - name: tsa_tags
46
+ sequence: string
47
+ splits:
48
+ - name: train
49
+ num_bytes: 2316306
50
+ num_examples: 8634
51
+ - name: validation
52
+ num_bytes: 414972
53
+ num_examples: 1531
54
+ - name: test
55
+ num_bytes: 349228
56
+ num_examples: 1272
57
+ download_size: 904339
58
+ dataset_size: 3080506
59
+ homepage: https://github.com/ltgoslo/norec_tsa
60
+ citation: "@InProceedings{OvrMaeBar20,\n author = {Lilja Øvrelid and Petter Mæhlum\
61
+ \ and Jeremy Barnes and Erik Velldal},\n title = {A Fine-grained Sentiment Dataset\
62
+ \ for {N}orwegian},\n booktitle = {{Proceedings of the 12th Edition of the Language\
63
+ \ Resources and Evaluation Conference}},\n year = 2020,\n address = \"Marseille,\
64
+ \ France, 2020\"\n}"
65
+ configs:
66
+ - config_name: binary
67
+ data_files:
68
+ - split: train
69
+ path: binary/train-*
70
+ - split: validation
71
+ path: binary/validation-*
72
+ - split: test
73
+ path: binary/test-*
74
+ - config_name: intensity
75
+ data_files:
76
+ - split: train
77
+ path: intensity/train-*
78
+ - split: validation
79
+ path: intensity/validation-*
80
+ - split: test
81
+ path: intensity/test-*
82
+ ---
83
+ # Dataset Card for NoReC TSA
84
+
85
+
86
+ ## Dataset Description
87
+
88
+ <!--- **Homepage:** --->
89
+ - **Repository:**
90
+ https://github.com/ltgoslo/norec_tsa
91
+ - **Paper:**
92
+ [A Fine-Grained Sentiment Dataset for Norwegian](https://aclanthology.org/2020.lrec-1.618/)
93
+
94
+ <!---
95
+ - **Leaderboard:**
96
+ - **Point of Contact:**
97
+ --->
98
+
99
+ ### Dataset Summary
100
+ The dataset contains tokenized Norwegian sentences where each token is tagged for sentiment expressed towards that token. The dataset is derived from the manually annotated [NoReC_fine](https://github.com/ltgoslo/norec_fine) with rich annotations for each sentiment expression in the texts.
101
+ The texts are a subset of the Norewegian Review Corpus [NoReC](https://github.com/ltgoslo/norec).
102
+
103
+ ### Supported Tasks and Leaderboards
104
+ [NorBench](https://github.com/ltgoslo/norbench) provides TSA evaluation scripts using this dataset, and a leaderboard comparing large language models for downstream NLP tasks in Norwegian.
105
+
106
+ ### Languages
107
+ Norwegian: Predominantly Bokmål written variant.
108
+
109
+ | variant | split | sents | docs |
110
+ |:-----|:--------|--------:|-------:|
111
+ | nb | dev | 1531 | 44 |
112
+ | nb | test | 1272 | 47 |
113
+ | nb | train | 8556 | 323 |
114
+ | nn | train | 78 | 4 |
115
+
116
+ ## Dataset Structure
117
+ The dataset comes in two flavours:
118
+ - `binary` configuration yields labels with binary Positive / Negative sentiment description
119
+ - `intensity` configuration yields labels with additional sentiment intensity, 1: Slight, 2: Standard, and 3: Strong.
120
+
121
+ The config is mandatory when loading the dataset and can be passed as a second positional parameter, e.g. `tsa_data = load_dataset("ltg/norec_tsa", "binary")`
122
+ The dataset comes with predefined train, dev (vallidation) and test splits.
123
+
124
+
125
+ ### Data Instances
126
+ Config "binary" example instance:
127
+ ```
128
+ {'idx': '701363-08-02',
129
+ 'tokens': ['Vi', 'liker', 'det', '.'],
130
+ 'tsa_tags': ['O', 'O', 'B-targ-Positive', 'O']}
131
+ ```
132
+ Config "intensity" example instance:
133
+ ```
134
+ {'idx': '701363-08-02',
135
+ 'tokens': ['Vi', 'liker', 'det', '.'],
136
+ 'tsa_tags': ['O', 'O', 'B-targ-Positive-2', 'O']}
137
+ ```
138
+
139
+
140
+
141
+ ### Data Fields
142
+ - idx(str): Unique document-and sentence identifier from [NoReC_fine](https://github.com/ltgoslo/norec_fine). The 6-digit document identifier can also be used to look up the text and its metadata in [NoReC](https://github.com/ltgoslo/norec).
143
+ - tokens: (List[str]): List of the tokens in the sentence
144
+ - tsa_tags: (List[str]): List of the tags for each token in BIO format. There is no integer representation of these in the dataset.
145
+
146
+
147
+
148
+
149
+ ### Data Splits
150
+ ```
151
+ DatasetDict({
152
+ test: Dataset({
153
+ features: ['idx', 'tokens', 'tsa_tags'],
154
+ num_rows: 1272
155
+ })
156
+ train: Dataset({
157
+ features: ['idx', 'tokens', 'tsa_tags'],
158
+ num_rows: 8634
159
+ })
160
+ validation: Dataset({
161
+ features: ['idx', 'tokens', 'tsa_tags'],
162
+ num_rows: 1531
163
+ })
164
+ })
165
+ ```
166
+
167
+ ## Dataset Creation
168
+
169
+ ### Curation Rationale
170
+ The sentiment expressions and targets are annotated in NoReC_fine according to its [annotation guidelines](https://github.com/ltgoslo/norec_fine/blob/master/annotation_guidelines/guidelines.md)
171
+
172
+ Since a sentiment target may be the target of several sentiment expressions, these are resolved to a final sentiment polarity (and intensity) using the conversion script in [NoReC_tsa](https://github.com/ltgoslo/norec_tsa). There is no "mixed" sentiment category. When a target is the receiver of both positive and negative sentiment, the strongest wins. If a tie, the last sentiment wins.
173
+
174
+ ### Source Data
175
+ A subset of the Norwegian Review Corpus with its sources and preprocessing described [here](https://github.com/ltgoslo/norec).
176
+
177
+ <!---
178
+ #### Initial Data Collection and Normalization
179
+
180
+ [More Information Needed]
181
+
182
+ #### Who are the source language producers?
183
+
184
+ [More Information Needed]
185
+
186
+ ### Annotations
187
+
188
+ #### Annotation process
189
+
190
+ [More Information Needed]
191
+
192
+ #### Who are the annotators?
193
+
194
+ [More Information Needed]
195
+
196
+ ### Personal and Sensitive Information
197
+
198
+ [More Information Needed]
199
+
200
+ ## Considerations for Using the Data
201
+
202
+ ### Social Impact of Dataset
203
+
204
+ [More Information Needed]
205
+ --->
206
+ ### Discussion of Biases
207
+ The professional review texts in NoReC that NoReC_tsa is a subset from, are from a set number of Norwegian Publishing channels and from a set timespan that can be explored in the [NoReC metadata](https://raw.githubusercontent.com/ltgoslo/norec/master/data/metadata.json). Both language usage and sentiments expressed could have been more diverse with a more diverse set of source texts.
208
+
209
+ <!---
210
+ ### Other Known Limitations
211
+
212
+ [More Information Needed]
213
+
214
+ ## Additional Information
215
+
216
+ ### Dataset Curators
217
+
218
+ [More Information Needed]
219
+ --->
220
+ ### Licensing Information
221
+
222
+ The data, being derived from [NoReC](https://github.com/ltgoslo/norec), is distributed under a Creative Commons Attribution-NonCommercial licence (CC BY-NC 4.0), access the full license text here: https://creativecommons.org/licenses/by-nc/4.0/
223
+
224
+ 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.
225
+
226
+
227
+ ### Citation Information
228
+ ```
229
+ @InProceedings{OvrMaeBar20,
230
+ author = {Lilja Øvrelid and Petter Mæhlum and Jeremy Barnes and Erik Velldal},
231
+ title = {A Fine-grained Sentiment Dataset for {N}orwegian},
232
+ booktitle = {{Proceedings of the 12th Edition of the Language Resources and Evaluation Conference}},
233
+ year = 2020,
234
+ address = {Marseille, France, 2020}
235
+ }```
236
+
237
+ <!---
238
+ ### Contributions
239
+
240
+ [More Information Needed]
241
+ --->
binary/test-00000-of-00001-4d8819961217d87e.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99e5795d56b6a6e4aef7d30f0a078c7aef716391370d00e52145bd46a2eade84
3
+ size 103592
binary/train-00000-of-00001-f8ab560346db1f32.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d8edbb95ec08246b10cad299d4546be75c3d96f93eb2d4796e30e90f4403f89
3
+ size 673897
binary/validation-00000-of-00001-26918731561cb978.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:452784c3e8d597aa1c3af692ac034e44d0329c14720480ccbc2507710b59c425
3
+ size 121415
intensity/test-00000-of-00001-4d16bfa19c1c6bf9.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f57fc2f9772775a9216ff05dfc7adf83b81bd1103f241d1e6edcf0d9e9a17873
3
+ size 104269
intensity/train-00000-of-00001-f8ab560346db1f32.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b442fb033d37a850147ab865d13b427796c3fd27eccc3f2097a4ddd41ad10f52
3
+ size 677982
intensity/validation-00000-of-00001-2cefd3fdff51fdfd.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd7e167105855a336c4d9e43fb05cfe3834da00d6f3026c8ed68f5a1c11ef5d2
3
+ size 122088