Update README.md
Browse files
README.md
CHANGED
@@ -28,4 +28,80 @@ configs:
|
|
28 |
path: data/validation-*
|
29 |
- split: test
|
30 |
path: data/test-*
|
|
|
|
|
|
|
|
|
31 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
path: data/validation-*
|
29 |
- split: test
|
30 |
path: data/test-*
|
31 |
+
license: mit
|
32 |
+
language:
|
33 |
+
- en
|
34 |
+
pretty_name: TOS_Dataset
|
35 |
---
|
36 |
+
|
37 |
+
# TOS_Dataset
|
38 |
+
|
39 |
+
This dataset contains clauses from Terms of Service (ToS) documents with annotations indicating the fairness level of each clause. The dataset includes clauses labeled as `clearly_fair`, `potentially_unfair`, and `clearly_unfair`.
|
40 |
+
|
41 |
+
## Dataset Summary
|
42 |
+
|
43 |
+
The dataset comprises clauses extracted from various ToS documents. Each clause is annotated with a fairness level, indicating whether it is clearly fair, potentially unfair, or clearly unfair.
|
44 |
+
|
45 |
+
## Supported Tasks
|
46 |
+
|
47 |
+
This dataset can be used for multi-class classification tasks, specifically for classifying the fairness of clauses in ToS documents.
|
48 |
+
|
49 |
+
## Languages
|
50 |
+
|
51 |
+
The dataset is in English.
|
52 |
+
|
53 |
+
## Dataset Structure
|
54 |
+
|
55 |
+
The dataset is split into three sets: train, validation, and test.
|
56 |
+
|
57 |
+
### Data Fields
|
58 |
+
|
59 |
+
- `sentence`: The clause from the ToS document.
|
60 |
+
- `unfairness_level`: The fairness level assigned to the clause. Possible values are `clearly_fair`, `potentially_unfair`, and `clearly_unfair`.
|
61 |
+
|
62 |
+
### Data Splits
|
63 |
+
|
64 |
+
| Split | Count |
|
65 |
+
|------------|--------------|
|
66 |
+
| Train | 5.38k rows |
|
67 |
+
| Validation | 415 rows |
|
68 |
+
| Test | 1.04k rows |
|
69 |
+
|
70 |
+
## Usage
|
71 |
+
|
72 |
+
To load the dataset:
|
73 |
+
|
74 |
+
```python
|
75 |
+
from datasets import load_dataset
|
76 |
+
|
77 |
+
dataset = load_dataset("CodeHima/TOS_Dataset")
|
78 |
+
```
|
79 |
+
|
80 |
+
## Example
|
81 |
+
|
82 |
+
```python
|
83 |
+
from datasets import load_dataset
|
84 |
+
|
85 |
+
dataset = load_dataset("CodeHima/TOS_Dataset")
|
86 |
+
|
87 |
+
for split in ['train', 'validation', 'test']:
|
88 |
+
print(f"Example from {split} split:")
|
89 |
+
print(dataset[split][0])
|
90 |
+
```
|
91 |
+
|
92 |
+
## License
|
93 |
+
|
94 |
+
This dataset is licensed under the MIT. Please see the LICENSE file for more details.
|
95 |
+
|
96 |
+
## Citation
|
97 |
+
|
98 |
+
If you use this dataset in your research, please cite it as follows:
|
99 |
+
|
100 |
+
```
|
101 |
+
@dataset{CodeHima_TOS_Dataset,
|
102 |
+
author = {CodeHima},
|
103 |
+
title = {TOS_Dataset},
|
104 |
+
year = {2024},
|
105 |
+
publisher = {Hugging Face},
|
106 |
+
url = {https://huggingface.co/datasets/CodeHima/TOS_Dataset},
|
107 |
+
}
|