Tim Hagen commited on
Commit
bf5cf89
·
1 Parent(s): 2f10485

Add converted parquet files and update conversion script

Browse files
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- license: mit
3
  task_categories:
4
  - text-classification
5
  - token-classification
@@ -107,7 +107,7 @@ train-eval-index:
107
  ---
108
 
109
  > [!NOTE]
110
- > This repository integrates the AltLex corpus into hf datasets. It is in conformance with AltLex's MIT license. Please find the original dataset
111
  > [here](https://github.com/chridey/altlex). We used the [UniCausal](https://github.com/tanfiona/UniCausal/tree/main/data/grouped/splits) reformatting of the data as the basis
112
  > for this repository. Please see the [citations](#citations) at the end of this README.
113
 
 
1
  ---
2
+ # license: mit # TODO: verify — https://github.com/chridey/altlex
3
  task_categories:
4
  - text-classification
5
  - token-classification
 
107
  ---
108
 
109
  > [!NOTE]
110
+ > This repository integrates the AltLex corpus into hf datasets. Please find the original dataset
111
  > [here](https://github.com/chridey/altlex). We used the [UniCausal](https://github.com/tanfiona/UniCausal/tree/main/data/grouped/splits) reformatting of the data as the basis
112
  > for this repository. Please see the [citations](#citations) at the end of this README.
113
 
causal-candidate-extraction/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b428cd088bf16b21e0f9e5f95eb032b0b988221247e2eb900f18b8b3c3f083a
3
+ size 48778
causal-candidate-extraction/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4b23058e94964a14e837e0d37b85ec6607c041210f5d8e088eccda1e0f6b385
3
+ size 75311
causality-detection/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3425aacf03904c35407c958b6101f211f3d7b7c5cba910f1e4253abfefa12f7a
3
+ size 46976
causality-detection/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8602685839cf2c3924d23b859ba48a910546f7464b82f4755ed32c41ff93ed8d
3
+ size 71964
causality-identification/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af88e3a1c4ceb4004ebf6e38c5f97f143c1785d33003f9bba9e4de70d6de7e0f
3
+ size 49720
causality-identification/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4d4053320c8f6e614c9fa32ba3a622b71c7305f8503494ef222312de9f89d1f
3
+ size 76166
conversion_script.py CHANGED
@@ -15,8 +15,8 @@ from pathlib import Path
15
  from ctk.data.constants import Task
16
  from ctk.data.conversion import UniCausal2HF
17
 
18
- converter = UniCausal2HF({"train": Path.cwd() / "altlex_train.csv",
19
- "test": Path.cwd() / "altlex_test.csv"}, Path.cwd())
20
 
21
  converter.convert(Task.CausalityDetection, "train")
22
  converter.convert(Task.CausalityDetection, "test")
 
15
  from ctk.data.constants import Task
16
  from ctk.data.conversion import UniCausal2HF
17
 
18
+ converter = UniCausal2HF({"train": "https://raw.githubusercontent.com/tanfiona/UniCausal/refs/heads/main/data/grouped/splits/altlex_train.csv",
19
+ "test": "https://raw.githubusercontent.com/tanfiona/UniCausal/refs/heads/main/data/grouped/splits/altlex_test.csv"}, Path.cwd())
20
 
21
  converter.convert(Task.CausalityDetection, "train")
22
  converter.convert(Task.CausalityDetection, "test")