birgermoell commited on
Commit
e896795
·
verified ·
1 Parent(s): 622516c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -30
README.md CHANGED
@@ -1,32 +1,74 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: int64
6
- - name: theme
7
- dtype: string
8
- - name: left_context
9
- dtype: string
10
- - name: target_sentence
11
- dtype: string
12
- - name: right_context
13
- dtype: string
14
- - name: label
15
- dtype: int64
16
- splits:
17
- - name: train
18
- num_bytes: 209762
19
- num_examples: 264
20
- - name: test
21
- num_bytes: 52440
22
- num_examples: 66
23
- download_size: 165249
24
- dataset_size: 262202
25
- configs:
26
- - config_name: default
27
- data_files:
28
- - split: train
29
- path: data/train-*
30
- - split: test
31
- path: data/test-*
32
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - causality-detection
12
+ size_categories:
13
+ - n<1K
14
+ source_datasets:
15
+ - original
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
+
18
+ # Swedish Causality Binary Classification Dataset
19
+
20
+ Binary causality detection dataset for Swedish text, extracted from Swedish Government Official Reports (SOU-corpus).
21
+
22
+ ## Dataset Description
23
+
24
+ This dataset contains Swedish sentences annotated for the presence of causal relations. Each example includes:
25
+
26
+ - **theme**: The thematic category (e.g., "skog, växthuseffekt/klimat")
27
+ - **left_context**: Preceding context sentences
28
+ - **target_sentence**: The sentence to classify
29
+ - **right_context**: Following context sentences
30
+ - **label**: Binary annotation (0 = no causality, 1 = causality present)
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ from datasets import load_dataset
36
+
37
+ dataset = load_dataset("UppsalaNLP/swedish-causality-binary")
38
+
39
+ # Access train/test splits
40
+ train = dataset["train"]
41
+ test = dataset["test"]
42
+
43
+ # Example
44
+ print(train[0]["target_sentence"])
45
+ print(train[0]["label"])
46
+ ```
47
+
48
+ ## Dataset Statistics
49
+
50
+ | Split | Examples |
51
+ |-------|----------|
52
+ | Train | ~80% |
53
+ | Test | ~20% |
54
+
55
+ ## Source
56
+
57
+ Text extracted from the [SOU-corpus](https://github.com/UppsalaNLP/SOU-corpus) (Swedish Government Official Reports).
58
+
59
+ ## Citation
60
+
61
+ ```bibtex
62
+ @inproceedings{durlich-etal-2022-cause,
63
+ title = "Cause and Effect in Governmental Reports: Two Data Sets for Causality Detection in Swedish",
64
+ author = "D{\"u}rlich, Luise and Reimann, Sebastian and Finnveden, Gustav and Nivre, Joakim and Stymne, Sara",
65
+ booktitle = "Proceedings of the First Workshop on Natural Language Processing for Political Sciences",
66
+ month = jun,
67
+ year = "2022",
68
+ address = "Marseilles, France"
69
+ }
70
+ ```
71
+
72
+ ## License
73
+
74
+ This dataset is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).