birgermoell commited on
Commit
a23a794
·
verified ·
1 Parent(s): f4c6ff4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +71 -36
README.md CHANGED
@@ -1,38 +1,73 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: int64
6
- - name: keyword
7
- dtype: string
8
- - name: document
9
- dtype: string
10
- - name: section
11
- dtype: string
12
- - name: left_context
13
- dtype: string
14
- - name: target_sentence
15
- dtype: string
16
- - name: right_context
17
- dtype: string
18
- - name: label
19
- dtype: int64
20
- - name: annotator_agreement
21
- dtype: int64
22
- splits:
23
- - name: train
24
- num_bytes: 120414
25
- num_examples: 167
26
- - name: test
27
- num_bytes: 30284
28
- num_examples: 42
29
- download_size: 107228
30
- dataset_size: 150698
31
- configs:
32
- - config_name: default
33
- data_files:
34
- - split: train
35
- path: data/train-*
36
- - split: test
37
- path: data/test-*
38
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Trial Dataset
19
+
20
+ Binary causality detection trial dataset for Swedish text with keyword-based sampling.
21
+
22
+ ## Dataset Description
23
+
24
+ This dataset contains Swedish sentences annotated for causality, sampled based on causal keywords (e.g., "bero på", "leda till").
25
+
26
+ ### Fields
27
+
28
+ - **keyword**: The causal keyword used to sample the sentence
29
+ - **document**: Source document ID
30
+ - **section**: Section within the document
31
+ - **left_context**: Preceding context sentences
32
+ - **target_sentence**: The sentence to classify
33
+ - **right_context**: Following context sentences
34
+ - **label**: Binary annotation (0 = no causality, 1 = causality present) - majority vote of 3 annotators
35
+ - **annotator_agreement**: Number of annotators who agreed with the majority label (2 or 3)
36
+
37
+ ## Usage
38
+
39
+ ```python
40
+ from datasets import load_dataset
41
+
42
+ dataset = load_dataset("UppsalaNLP/swedish-causality-trial")
43
+
44
+ # Access train/test splits
45
+ train = dataset["train"]
46
+ test = dataset["test"]
47
+
48
+ # Example
49
+ print(train[0]["keyword"])
50
+ print(train[0]["target_sentence"])
51
+ print(train[0]["label"])
52
+ ```
53
+
54
+ ## Source
55
+
56
+ Text extracted from the [SOU-corpus](https://github.com/UppsalaNLP/SOU-corpus) (Swedish Government Official Reports).
57
+
58
+ ## Citation
59
+
60
+ ```bibtex
61
+ @inproceedings{durlich-etal-2022-cause,
62
+ title = "Cause and Effect in Governmental Reports: Two Data Sets for Causality Detection in Swedish",
63
+ author = "D{\"u}rlich, Luise and Reimann, Sebastian and Finnveden, Gustav and Nivre, Joakim and Stymne, Sara",
64
+ booktitle = "Proceedings of the First Workshop on Natural Language Processing for Political Sciences",
65
+ month = jun,
66
+ year = "2022",
67
+ address = "Marseilles, France"
68
+ }
69
+ ```
70
+
71
+ ## License
72
+
73
+ This dataset is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).