Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
Catalan
Size:
10K - 100K
DOI:
License:
Upload 2 files
Browse files- .gitattributes +1 -0
- CaSERa-catalan-stance-emotions-raco.py +15 -15
- data.jsonl +0 -0
.gitattributes
CHANGED
@@ -52,3 +52,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
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
|
|
|
|
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
|
55 |
+
data.jsonl filter=lfs diff=lfs merge=lfs -text
|
CaSERa-catalan-stance-emotions-raco.py
CHANGED
@@ -52,17 +52,17 @@ class CaSERA(datasets.GeneratorBasedBuilder):
|
|
52 |
return datasets.DatasetInfo(
|
53 |
description=_DESCRIPTION,
|
54 |
features=datasets.Features(
|
55 |
-
{"
|
56 |
-
"
|
57 |
-
"
|
58 |
-
"
|
59 |
"dynamic_stance": datasets.features.ClassLabel
|
60 |
(names=
|
61 |
['Agree', 'Disagree', 'Elaborate', 'Query', 'Neutral', 'Unrelated', 'NA'
|
62 |
]
|
63 |
),
|
64 |
-
"
|
65 |
-
"
|
66 |
}
|
67 |
),
|
68 |
homepage=_HOMEPAGE,
|
@@ -86,12 +86,12 @@ class CaSERA(datasets.GeneratorBasedBuilder):
|
|
86 |
with open(filepath, encoding="utf-8") as f:
|
87 |
data = [json.loads(line) for line in f]
|
88 |
for id_, pair in enumerate(data):
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
52 |
return datasets.DatasetInfo(
|
53 |
description=_DESCRIPTION,
|
54 |
features=datasets.Features(
|
55 |
+
{"id_conversation": datasets.Value("string"),
|
56 |
+
"id_reply": datasets.Value("string"),
|
57 |
+
"parent_text": datasets.Value("string"),
|
58 |
+
"reply_text": datasets.Value("string"),
|
59 |
"dynamic_stance": datasets.features.ClassLabel
|
60 |
(names=
|
61 |
['Agree', 'Disagree', 'Elaborate', 'Query', 'Neutral', 'Unrelated', 'NA'
|
62 |
]
|
63 |
),
|
64 |
+
"parent_emotion": datasets.Value("string"),
|
65 |
+
"reply_emotion": datasets.Value("string"),
|
66 |
}
|
67 |
),
|
68 |
homepage=_HOMEPAGE,
|
|
|
86 |
with open(filepath, encoding="utf-8") as f:
|
87 |
data = [json.loads(line) for line in f]
|
88 |
for id_, pair in enumerate(data):
|
89 |
+
yield id_, {
|
90 |
+
"id_conversation": pair["id_conversation"],
|
91 |
+
"id_reply": pair["id_reply"],
|
92 |
+
"parent_text":pair["parent_text"],
|
93 |
+
"reply_text": pair["reply_text"],
|
94 |
+
"dynamic_stance": pair["dynamic_stance"],
|
95 |
+
"parent_emotion": pair["parent_emotion"],
|
96 |
+
"reply_emotion": pair["reply_emotion"],
|
97 |
+
}
|
data.jsonl
CHANGED
The diff for this file is too large to render.
See raw diff
|
|