birgermoell commited on
Commit
f2bdf55
·
verified ·
1 Parent(s): 6e6d484

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +79 -31
README.md CHANGED
@@ -1,33 +1,81 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: int64
6
- - name: prompt
7
- dtype: string
8
- - name: sentence_1_left_context
9
- dtype: string
10
- - name: sentence_1_target
11
- dtype: string
12
- - name: sentence_1_right_context
13
- dtype: string
14
- - name: sentence_2_left_context
15
- dtype: string
16
- - name: sentence_2_target
17
- dtype: string
18
- - name: sentence_2_right_context
19
- dtype: string
20
- - name: annotation
21
- dtype: int64
22
- splits:
23
- - name: train
24
- num_bytes: 1078561
25
- num_examples: 800
26
- download_size: 462799
27
- dataset_size: 1078561
28
- configs:
29
- - config_name: default
30
- data_files:
31
- - split: train
32
- path: data/train-*
33
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - sv
5
+ task_categories:
6
+ - text-classification
7
+ tags:
8
+ - causality
9
+ - swedish
10
+ - nlp
11
+ - ranking
12
+ - causality-detection
13
+ size_categories:
14
+ - n<1K
15
+ source_datasets:
16
+ - original
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
+
19
+ # Swedish Causality Ranking Dataset
20
+
21
+ Causality ranking dataset for Swedish text, comparing sentence pairs on how well they match a causal prompt.
22
+
23
+ ## Dataset Description
24
+
25
+ This dataset contains pairs of Swedish sentences annotated on a 6-point scale for their causal relevance to a given prompt containing a cause or effect.
26
+
27
+ ### Fields
28
+
29
+ - **prompt**: Query containing a cause or effect (e.g., "Verkan: växthuseffekt")
30
+ - **sentence_1_left_context**: Context before sentence 1
31
+ - **sentence_1_target**: First target sentence
32
+ - **sentence_1_right_context**: Context after sentence 1
33
+ - **sentence_2_left_context**: Context before sentence 2
34
+ - **sentence_2_target**: Second target sentence
35
+ - **sentence_2_right_context**: Context after sentence 2
36
+ - **annotation**: Ranking score (1-6 scale)
37
+
38
+ ### Annotation Scale
39
+
40
+ The 6-point scale compares which sentence better expresses a causal relation matching the prompt:
41
+ - Lower scores: Sentence 1 is more relevant
42
+ - Higher scores: Sentence 2 is more relevant
43
+ - Middle scores: Both sentences are similarly relevant
44
+
45
+ ## Usage
46
+
47
+ ```python
48
+ from datasets import load_dataset
49
+
50
+ dataset = load_dataset("UppsalaNLP/swedish-causality-ranking")
51
+
52
+ # Access the data
53
+ data = dataset["train"]
54
+
55
+ # Example
56
+ print(data[0]["prompt"])
57
+ print(data[0]["sentence_1_target"])
58
+ print(data[0]["sentence_2_target"])
59
+ print(data[0]["annotation"])
60
+ ```
61
+
62
+ ## Source
63
+
64
+ Text extracted from the [SOU-corpus](https://github.com/UppsalaNLP/SOU-corpus) (Swedish Government Official Reports).
65
+
66
+ ## Citation
67
+
68
+ ```bibtex
69
+ @inproceedings{durlich-etal-2022-cause,
70
+ title = "Cause and Effect in Governmental Reports: Two Data Sets for Causality Detection in Swedish",
71
+ author = "D{\"u}rlich, Luise and Reimann, Sebastian and Finnveden, Gustav and Nivre, Joakim and Stymne, Sara",
72
+ booktitle = "Proceedings of the First Workshop on Natural Language Processing for Political Sciences",
73
+ month = jun,
74
+ year = "2022",
75
+ address = "Marseilles, France"
76
+ }
77
+ ```
78
+
79
+ ## License
80
+
81
+ This dataset is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).