Tim Hagen commited on
Commit ·
bf5cf89
1
Parent(s): 2f10485
Add converted parquet files and update conversion script
Browse filesFiles changed (8)
- README.md+2-2
- causal-candidate-extraction/test.parquetAdded+3
- causal-candidate-extraction/train.parquetAdded+3
- causality-detection/test.parquetAdded+3
- causality-detection/train.parquetAdded+3
- causality-identification/test.parquetAdded+3
- causality-identification/train.parquetAdded+3
- conversion_script.py+2-2
122345101 unmodified lines107108109110110111112113---license: mit# license: mit # TODO: verify — https://github.com/chridey/altlextask_categories:- text-classification- token-classification101 unmodified lines---
> [!NOTE] > This repository integrates the AltLex corpus into hf datasets. It is in conformance with AltLex's MIT license. Please find the original dataset> This repository integrates the AltLex corpus into hf datasets. Please find the original dataset> [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> for this repository. Please see the [citations](#citations) at the end of this README.
123version https://git-lfs.github.com/spec/v1oid sha256:0b428cd088bf16b21e0f9e5f95eb032b0b988221247e2eb900f18b8b3c3f083asize 48778123version https://git-lfs.github.com/spec/v1oid sha256:c4b23058e94964a14e837e0d37b85ec6607c041210f5d8e088eccda1e0f6b385size 75311123version https://git-lfs.github.com/spec/v1oid sha256:3425aacf03904c35407c958b6101f211f3d7b7c5cba910f1e4253abfefa12f7asize 46976123version https://git-lfs.github.com/spec/v1oid sha256:8602685839cf2c3924d23b859ba48a910546f7464b82f4755ed32c41ff93ed8dsize 71964123version https://git-lfs.github.com/spec/v1oid sha256:af88e3a1c4ceb4004ebf6e38c5f97f143c1785d33003f9bba9e4de70d6de7e0fsize 49720123version https://git-lfs.github.com/spec/v1oid sha256:b4d4053320c8f6e614c9fa32ba3a622b71c7305f8503494ef222312de9f89d1fsize 7616614 unmodified lines1516171819181920212214 unmodified linesfrom ctk.data.constants import Taskfrom ctk.data.conversion import UniCausal2HF
converter = UniCausal2HF({"train": Path.cwd() / "altlex_train.csv", "test": Path.cwd() / "altlex_test.csv"}, Path.cwd())converter = UniCausal2HF({"train": "https://raw.githubusercontent.com/tanfiona/UniCausal/refs/heads/main/data/grouped/splits/altlex_train.csv", "test": "https://raw.githubusercontent.com/tanfiona/UniCausal/refs/heads/main/data/grouped/splits/altlex_test.csv"}, Path.cwd())
converter.convert(Task.CausalityDetection, "train")converter.convert(Task.CausalityDetection, "test")README.md+2-2
causal-candidate-extraction/test.parquetAdded+3
causal-candidate-extraction/train.parquetAdded+3
causality-detection/test.parquetAdded+3
causality-detection/train.parquetAdded+3
causality-identification/test.parquetAdded+3
causality-identification/train.parquetAdded+3
conversion_script.py+2-2