inigopm commited on
Commit
b955762
1 Parent(s): 6c124a5

Position range updated from word level to character level & Added None to [[], []] values in DataLoader

Browse files
.gitattributes CHANGED
@@ -1,54 +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
 
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
CaSSA-catalan-structured-sentiment-analysis.py CHANGED
@@ -1,92 +1,98 @@
1
- # Loading script for the ReviewsFinder dataset.
2
-
3
-
4
- import json
5
-
6
- import datasets
7
-
8
-
9
- logger = datasets.logging.get_logger(__name__)
10
-
11
-
12
- _CITATION = """ """
13
-
14
-
15
- _DESCRIPTION = """ The CaSSA dataset is a corpus of 6,400 reviews and forum messages annotated with polar expressions. Each piece of text is annotated with all the expressions of polarity that it contains. For each polar expression, we annotated the expression itself, the target (the object of the expression), and the source (the subject expressing the sentiment). 25,453 polar expressions have been annotated.
16
- """
17
-
18
-
19
- _HOMEPAGE = """ https://huggingface.co/datasets/projecte-aina/CaSSA-catalan-structured-sentiment-analysis/ """
20
-
21
-
22
-
23
- _URL = "https://huggingface.co/datasets/projecte-aina/CaSSA-catalan-structured-sentiment-analysis/resolve/main/"
24
- _FILE = "data.jsonl"
25
-
26
-
27
- class CaSSAConfig(datasets.BuilderConfig):
28
- """ Builder config for the CaSSA dataset """
29
-
30
- def __init__(self, **kwargs):
31
- """BuilderConfig for CaSSA.
32
- Args:
33
- **kwargs: keyword arguments forwarded to super.
34
- """
35
- super(CaSSAConfig, self).__init__(**kwargs)
36
-
37
-
38
- class CaSSA(datasets.GeneratorBasedBuilder):
39
- """ CaSSA Dataset """
40
-
41
-
42
- BUILDER_CONFIGS = [
43
- CaSSAConfig(
44
- name="CaSSA",
45
- version=datasets.Version("1.0.0"),
46
- description="CaSSA dataset",
47
- ),
48
- ]
49
-
50
-
51
- def _info(self):
52
- return datasets.DatasetInfo(
53
- description=_DESCRIPTION,
54
- features=datasets.Features(
55
- {"sent_id": datasets.Value("string"),
56
- "text": datasets.Value("string"),
57
- "opinions": [
58
- {
59
- "Source": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
60
- "Target": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
61
- "Polar_expression": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
62
- "Polarity": datasets.Value("string"),
63
- "Intensity": datasets.Value("string")
64
- }
65
- ]
66
- }),
67
- homepage=_HOMEPAGE,
68
- citation=_CITATION,
69
- )
70
-
71
- def _split_generators(self, dl_manager):
72
- """Returns SplitGenerators."""
73
- urls_to_download = {
74
- "data": f"{_URL}{_FILE}",
75
- }
76
- downloaded_files = dl_manager.download_and_extract(urls_to_download)
77
-
78
- return [
79
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["data"]}),
80
- ]
81
-
82
- def _generate_examples(self, filepath):
83
- """This function returns the examples in the raw (text) form."""
84
- logger.info("generating examples from = %s", filepath)
85
- with open(filepath, encoding="utf-8") as f:
86
- data = [json.loads(line) for line in f]
87
- for id_, text in enumerate(data):
88
- yield id_, {
89
- "sent_id": text['sent_id'],
90
- "text": text['text'],
91
- "opinions": text["opinions"]
 
 
 
 
 
 
92
  }
 
1
+ # Loading script for the ReviewsFinder dataset.
2
+
3
+
4
+ import json
5
+
6
+ import datasets
7
+
8
+
9
+ logger = datasets.logging.get_logger(__name__)
10
+
11
+
12
+ _CITATION = """ """
13
+
14
+
15
+ _DESCRIPTION = """ The CaSSA dataset is a corpus of 6,400 reviews and forum messages annotated with polar expressions. Each piece of text is annotated with all the expressions of polarity that it contains. For each polar expression, we annotated the expression itself, the target (the object of the expression), and the source (the subject expressing the sentiment). 25,453 polar expressions have been annotated.
16
+ """
17
+
18
+
19
+ _HOMEPAGE = """ https://huggingface.co/datasets/projecte-aina/CaSSA-catalan-structured-sentiment-analysis/ """
20
+
21
+
22
+
23
+ _URL = "https://huggingface.co/datasets/projecte-aina/CaSSA-catalan-structured-sentiment-analysis/resolve/main/"
24
+ _FILE = "data.jsonl"
25
+
26
+
27
+ class CaSSAConfig(datasets.BuilderConfig):
28
+ """ Builder config for the CaSSA dataset """
29
+
30
+ def __init__(self, **kwargs):
31
+ """BuilderConfig for CaSSA.
32
+ Args:
33
+ **kwargs: keyword arguments forwarded to super.
34
+ """
35
+ super(CaSSAConfig, self).__init__(**kwargs)
36
+
37
+
38
+ class CaSSA(datasets.GeneratorBasedBuilder):
39
+ """ CaSSA Dataset """
40
+
41
+
42
+ BUILDER_CONFIGS = [
43
+ CaSSAConfig(
44
+ name="CaSSA",
45
+ version=datasets.Version("1.0.0"),
46
+ description="CaSSA dataset",
47
+ ),
48
+ ]
49
+
50
+
51
+ def _info(self):
52
+ return datasets.DatasetInfo(
53
+ description=_DESCRIPTION,
54
+ features=datasets.Features(
55
+ {"sent_id": datasets.Value("string"),
56
+ "text": datasets.Value("string"),
57
+ "opinions": [
58
+ {
59
+ "Source": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
60
+ "Target": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
61
+ "Polar_expression": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
62
+ "Polarity": datasets.Value("string"),
63
+ "Intensity": datasets.Value("string")
64
+ }
65
+ ]
66
+ }),
67
+ homepage=_HOMEPAGE,
68
+ citation=_CITATION,
69
+ )
70
+
71
+ def _split_generators(self, dl_manager):
72
+ """Returns SplitGenerators."""
73
+ urls_to_download = {
74
+ "data": f"{_URL}{_FILE}",
75
+ }
76
+ downloaded_files = dl_manager.download_and_extract(urls_to_download)
77
+
78
+ return [
79
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["data"]}),
80
+ ]
81
+
82
+ def _generate_examples(self, filepath):
83
+ """This function returns the examples in the raw (text) form."""
84
+ logger.info("generating examples from = %s", filepath)
85
+ with open(filepath, encoding="utf-8") as f:
86
+ data = [json.loads(line) for line in f]
87
+ for id_, text in enumerate(data):
88
+ yield id_, {
89
+ "sent_id": text['sent_id'],
90
+ "text": text['text'],
91
+ "opinions": [{
92
+ "Source": text_iter["Source"] if not text_iter["Source"] == [[], []] else None,
93
+ "Target": text_iter["Target"] if not text_iter["Target"] == [[], []] else None,
94
+ "Polar_expression": text_iter["Polar_expression"] if not text_iter["Polar_expression"] == [[], []] else None,
95
+ "Polarity": text_iter["Polarity"],
96
+ "Intensity": text_iter["Intensity"]
97
+ } for text_iter in text["opinions"]]
98
  }
README.md CHANGED
@@ -1,181 +1,181 @@
1
- ---
2
- annotations_creators:
3
- - Barcelona Supercomputing Center
4
- language_creators:
5
- - Racó Català
6
- - GuiaCat
7
- language:
8
- - ca
9
- license:
10
- - cc-by-nc-4.0
11
- multilinguality:
12
- - monolingual
13
- pretty_name: CaSSA
14
- task_categories:
15
- - text-classification
16
- task_ids: []
17
- ---
18
-
19
- # Dataset Card for CaSSA, the Catalan Structured Sentiment Analysis dataset
20
-
21
- ## Table of Contents
22
- - [Table of Contents](#table-of-contents)
23
- - [Dataset Description](#dataset-description)
24
- - [Dataset Summary](#dataset-summary)
25
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
26
- - [Languages](#languages)
27
- - [Dataset Structure](#dataset-structure)
28
- - [Data Instances](#data-instances)
29
- - [Data Fields](#data-fields)
30
- - [Data Splits](#data-splits)
31
- - [Dataset Creation](#dataset-creation)
32
- - [Curation Rationale](#curation-rationale)
33
- - [Annotations](#annotations)
34
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
35
- - [Considerations for Using the Data](#considerations-for-using-the-data)
36
- - [Social Impact of Dataset](#social-impact-of-dataset)
37
- - [Discussion of Biases](#discussion-of-biases)
38
- - [Other Known Limitations](#other-known-limitations)
39
- - [Additional Information](#additional-information)
40
- - [Dataset Curators](#dataset-curators)
41
- - [Licensing Information](#licensing-information)
42
- - [Citation Information](#citation-information)
43
- - [Contributions](#contributions)
44
-
45
- ## Dataset Description
46
-
47
- - **Point of Contact:** [Blanca Calvo](aina@bsc.es)
48
-
49
- ### Dataset Summary
50
-
51
- The CaSSA dataset is a corpus of 6,400 reviews and forum messages annotated with polar expressions. Each piece of text is annotated with all the expressions of polarity that it contains. For each polar expression, we annotated the expression itself, the target (the object of the expression), and the source (the subject expressing the sentiment). 25,453 polar expressions have been annotated.
52
-
53
- ### Supported Tasks and Leaderboards
54
-
55
- This dataset can be used to train models for sentiment analysis.
56
-
57
- ### Languages
58
-
59
- The dataset is in Catalan (`ca-ES`).
60
-
61
- ## Dataset Structure
62
-
63
- Each instance in the dataset is a text. For each text, there can be 0 to unlimited polar expressions, which are contained in the "opinions" field. Each opinion contains a source, a target, a polar expression, a polarity value and an intensity value.
64
-
65
- ### Data Instances
66
-
67
- ```
68
- {
69
- "sent_id": "2d6a3a0f-6686-4d8b-9c5f-51c424ff90be",
70
- "text": "El seu menú de nit de cap de setmana es boníssim, plats fets amb criteri i que surten com un rellotge. Servei proper i amable. Per poc mes de 20 euros entre pisos i flautes menges com un rei.",
71
- "opinions":
72
- [
73
- {
74
- "Source": [[], []],
75
- "Target": [["Servei"], ["23:24"]],
76
- "Polar_expression": [["proper"], ["24:25"]],
77
- "Polarity": "Neutral",
78
- "Intensity": "Standard"
79
- },
80
- {
81
- "Source": [[], []],
82
- "Target": [["Servei"], ["23:24"]],
83
- "Polar_expression": [["amable"], ["26:27"]],
84
- "Polarity": "Positive",
85
- "Intensity": "Standard"
86
- },
87
- {
88
- "Source": [[], []],
89
- "Target": [[], []],
90
- "Polar_expression": [["menges com un rei"], ["38:42"]],
91
- "Polarity": "Positive",
92
- "Intensity": "Strong"
93
- },
94
- {
95
- "Source": [["seu"], ["1:2"]],
96
- "Target": [["menú de nit de cap de setmana"], ["2:9"]],
97
- "Polar_expression": [["bon\u00edssim"], ["10:11"]],
98
- "Polarity": "Positive",
99
- "Intensity": "Strong"},
100
- {
101
- "Source": [[], []],
102
- "Target": [["plats"], ["12:13"]],
103
- "Polar_expression": [["amb criteri"], ["14:16"]],
104
- "Polarity": "Positive",
105
- "Intensity": "Standard"
106
- }
107
- ]
108
- }
109
-
110
- ```
111
-
112
- ### Data Splits
113
-
114
- The dataset does not contain splits.
115
-
116
- ## Dataset Creation
117
-
118
- ### Curation Rationale
119
-
120
- We created this corpus to contribute to the development of language models in Catalan, a low-resource language.
121
-
122
- ### Source Data
123
-
124
- The data was collected using the messages from the GuiaCat online guide and the forum Racó Català.
125
-
126
- #### Initial Data Collection and Normalization
127
-
128
- We selected all the restaurant reviews we had from GuiaCat, and used a LLM to select messages in Racó Català that were written in the style of reviews.
129
-
130
- #### Who are the source language producers?
131
-
132
- The source language producers are users of GuiaCat and Racó Català.
133
-
134
- ### Annotations
135
-
136
- Each opinion contains a source, a target, a polar expression, a polarity value and an intensity value. Source, Target, and Polar_expressions are spans, which are represented both by the string and by the position of the tokens. Polarity and Intensity are labels, which can respectively be, Positive, Negative and Neutral, and Standard and Strong.
137
-
138
- #### Annotation process
139
-
140
- - The data was annotated by 2 annotators. In the cases in which they did not fully agree, a third annotator selected the preferred annotation.
141
-
142
- #### Who are the annotators?
143
-
144
- All the annotators are native speakers of Catalan.
145
-
146
- ### Personal and Sensitive Information
147
-
148
- The data from Racó Català was annonymised to remove user names and emails, which were changed to random Catalan names. The mentions to the forum itself have also been changed.
149
-
150
- ## Considerations for Using the Data
151
-
152
- ### Social Impact of Dataset
153
-
154
- We hope this corpus contributes to the development of language models in Catalan, a low-resource language.
155
-
156
- ### Discussion of Biases
157
-
158
- We are aware that, since the data comes from online reviews and a public forum, this will contain biases, hate speech and toxic content. We have not applied any steps to reduce their impact.
159
-
160
- ### Other Known Limitations
161
-
162
- ## Additional Information
163
-
164
- ### Dataset Curators
165
-
166
- Language Technologies Unit (LangTech) at the Barcelona Supercomputing Center.
167
-
168
- This work was funded by the [Departament de la Vicepresidència i de Polítiques Digitals i Territori de la Generalitat de Catalunya](https://politiquesdigitals.gencat.cat/ca/inici/index.html#googtrans(ca|en) within the framework of [Projecte AINA](https://politiquesdigitals.gencat.cat/ca/economia/catalonia-ai/aina).
169
-
170
-
171
- ### Licensing Information
172
-
173
- [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/).
174
-
175
- ### Citation Information
176
-
177
- ```
178
-
179
- ```
180
-
181
  ### Contributions
 
1
+ ---
2
+ annotations_creators:
3
+ - Barcelona Supercomputing Center
4
+ language_creators:
5
+ - Racó Català
6
+ - GuiaCat
7
+ language:
8
+ - ca
9
+ license:
10
+ - cc-by-nc-4.0
11
+ multilinguality:
12
+ - monolingual
13
+ pretty_name: CaSSA
14
+ task_categories:
15
+ - text-classification
16
+ task_ids: []
17
+ ---
18
+
19
+ # Dataset Card for CaSSA, the Catalan Structured Sentiment Analysis dataset
20
+
21
+ ## Table of Contents
22
+ - [Table of Contents](#table-of-contents)
23
+ - [Dataset Description](#dataset-description)
24
+ - [Dataset Summary](#dataset-summary)
25
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
26
+ - [Languages](#languages)
27
+ - [Dataset Structure](#dataset-structure)
28
+ - [Data Instances](#data-instances)
29
+ - [Data Fields](#data-fields)
30
+ - [Data Splits](#data-splits)
31
+ - [Dataset Creation](#dataset-creation)
32
+ - [Curation Rationale](#curation-rationale)
33
+ - [Annotations](#annotations)
34
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
35
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
36
+ - [Social Impact of Dataset](#social-impact-of-dataset)
37
+ - [Discussion of Biases](#discussion-of-biases)
38
+ - [Other Known Limitations](#other-known-limitations)
39
+ - [Additional Information](#additional-information)
40
+ - [Dataset Curators](#dataset-curators)
41
+ - [Licensing Information](#licensing-information)
42
+ - [Citation Information](#citation-information)
43
+ - [Contributions](#contributions)
44
+
45
+ ## Dataset Description
46
+
47
+ - **Point of Contact:** [Blanca Calvo](aina@bsc.es)
48
+
49
+ ### Dataset Summary
50
+
51
+ The CaSSA dataset is a corpus of 6,400 reviews and forum messages annotated with polar expressions. Each piece of text is annotated with all the expressions of polarity that it contains. For each polar expression, we annotated the expression itself, the target (the object of the expression), and the source (the subject expressing the sentiment). 25,453 polar expressions have been annotated.
52
+
53
+ ### Supported Tasks and Leaderboards
54
+
55
+ This dataset can be used to train models for sentiment analysis.
56
+
57
+ ### Languages
58
+
59
+ The dataset is in Catalan (`ca-ES`).
60
+
61
+ ## Dataset Structure
62
+
63
+ Each instance in the dataset is a text. For each text, there can be 0 to unlimited polar expressions, which are contained in the "opinions" field. Each opinion contains a source, a target, a polar expression, a polarity value and an intensity value.
64
+
65
+ ### Data Instances
66
+
67
+ ```
68
+ {
69
+ "sent_id": "2d6a3a0f-6686-4d8b-9c5f-51c424ff90be",
70
+ "text": "El seu menú de nit de cap de setmana es boníssim, plats fets amb criteri i que surten com un rellotge. Servei proper i amable. Per poc mes de 20 euros entre pisos i flautes menges com un rei.",
71
+ "opinions":
72
+ [
73
+ {
74
+ "Source": None,
75
+ "Target": [["Servei"], ["103:109"]],
76
+ "Polar_expression": [["proper"], ["110:116"]],
77
+ "Polarity": "Neutral",
78
+ "Intensity": "Standard"
79
+ },
80
+ {
81
+ "Source": None,
82
+ "Target": [["Servei"], ["103:109"]],
83
+ "Polar_expression": [["amable"], ["119:125"]],
84
+ "Polarity": "Positive",
85
+ "Intensity": "Standard"
86
+ },
87
+ {
88
+ "Source": None,
89
+ "Target": None,
90
+ "Polar_expression": [["menges com un rei"], ["173:190"]],
91
+ "Polarity": "Positive",
92
+ "Intensity": "Strong"
93
+ },
94
+ {
95
+ "Source": [["seu"], ["3:6"]],
96
+ "Target": [["menú de nit de cap de setmana"], ["7:36"]],
97
+ "Polar_expression": [["bon\u00edssim"], ["40:48"]],
98
+ "Polarity": "Positive",
99
+ "Intensity": "Strong"},
100
+ {
101
+ "Source": None,
102
+ "Target": [["plats"], ["50:55"]],
103
+ "Polar_expression": [["amb criteri"], ["61:72"]],
104
+ "Polarity": "Positive",
105
+ "Intensity": "Standard"
106
+ }
107
+ ]
108
+ }
109
+
110
+ ```
111
+
112
+ ### Data Splits
113
+
114
+ The dataset does not contain splits.
115
+
116
+ ## Dataset Creation
117
+
118
+ ### Curation Rationale
119
+
120
+ We created this corpus to contribute to the development of language models in Catalan, a low-resource language.
121
+
122
+ ### Source Data
123
+
124
+ The data was collected using the messages from the GuiaCat online guide and the forum Racó Català.
125
+
126
+ #### Initial Data Collection and Normalization
127
+
128
+ We selected all the restaurant reviews we had from GuiaCat, and used a LLM to select messages in Racó Català that were written in the style of reviews.
129
+
130
+ #### Who are the source language producers?
131
+
132
+ The source language producers are users of GuiaCat and Racó Català.
133
+
134
+ ### Annotations
135
+
136
+ Each opinion contains a source, a target, a polar expression, a polarity value and an intensity value. Source, Target, and Polar_expressions are spans, which are represented both by the string and by the position of the characters. Polarity and Intensity are labels, which can respectively be, Positive, Negative and Neutral, and Standard and Strong.
137
+
138
+ #### Annotation process
139
+
140
+ - The data was annotated by 2 annotators. In the cases in which they did not fully agree, a third annotator selected the preferred annotation.
141
+
142
+ #### Who are the annotators?
143
+
144
+ All the annotators are native speakers of Catalan.
145
+
146
+ ### Personal and Sensitive Information
147
+
148
+ The data from Racó Català was annonymised to remove user names and emails, which were changed to random Catalan names. The mentions to the forum itself have also been changed.
149
+
150
+ ## Considerations for Using the Data
151
+
152
+ ### Social Impact of Dataset
153
+
154
+ We hope this corpus contributes to the development of language models in Catalan, a low-resource language.
155
+
156
+ ### Discussion of Biases
157
+
158
+ We are aware that, since the data comes from online reviews and a public forum, this will contain biases, hate speech and toxic content. We have not applied any steps to reduce their impact.
159
+
160
+ ### Other Known Limitations
161
+
162
+ ## Additional Information
163
+
164
+ ### Dataset Curators
165
+
166
+ Language Technologies Unit (LangTech) at the Barcelona Supercomputing Center.
167
+
168
+ This work was funded by the [Departament de la Vicepresidència i de Polítiques Digitals i Territori de la Generalitat de Catalunya](https://politiquesdigitals.gencat.cat/ca/inici/index.html#googtrans(ca|en) within the framework of [Projecte AINA](https://politiquesdigitals.gencat.cat/ca/economia/catalonia-ai/aina).
169
+
170
+
171
+ ### Licensing Information
172
+
173
+ [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/).
174
+
175
+ ### Citation Information
176
+
177
+ ```
178
+
179
+ ```
180
+
181
  ### Contributions
data.jsonl CHANGED
The diff for this file is too large to render. See raw diff