Update README.md
Browse files
README.md
CHANGED
@@ -31,3 +31,72 @@ configs:
|
|
31 |
- split: test
|
32 |
path: data/test-*
|
33 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
- split: test
|
32 |
path: data/test-*
|
33 |
---
|
34 |
+
# TOS_DatasetV3
|
35 |
+
|
36 |
+
## Dataset Description
|
37 |
+
|
38 |
+
TOS_DatasetV3 is a dataset designed for analyzing the unfairness of terms of service (ToS) clauses. It includes sentences from various terms of service agreements categorized into three unfairness levels: **clearly_fair**, **potentially_unfair**, and **clearly_unfair**. This dataset aims to aid in the development of models that can assess the fairness of legal documents.
|
39 |
+
|
40 |
+
## Dataset Structure
|
41 |
+
|
42 |
+
The dataset consists of the following columns:
|
43 |
+
|
44 |
+
- `sentence`: A string representing a sentence from a terms of service document.
|
45 |
+
- `unfairness_level`: A string indicating the unfairness classification of the sentence. The possible values are:
|
46 |
+
- `clearly_fair`
|
47 |
+
- `potentially_unfair`
|
48 |
+
- `clearly_unfair`
|
49 |
+
|
50 |
+
### Features
|
51 |
+
|
52 |
+
- **Features:**
|
53 |
+
- name: sentence
|
54 |
+
dtype: string
|
55 |
+
- name: unfairness_level
|
56 |
+
dtype: string
|
57 |
+
- name: sentence_length
|
58 |
+
dtype: int64
|
59 |
+
- name: __index_level_0__
|
60 |
+
dtype: int64
|
61 |
+
|
62 |
+
## Splits
|
63 |
+
|
64 |
+
The dataset is divided into three splits:
|
65 |
+
|
66 |
+
- **Train**: Used for training models (7946 examples).
|
67 |
+
- **Validation**: Used for validating model performance during training (1050 examples).
|
68 |
+
- **Test**: Used for testing model performance after training (1045 examples).
|
69 |
+
|
70 |
+
### Example
|
71 |
+
|
72 |
+
Here's a sample from the dataset:
|
73 |
+
|
74 |
+
| sentence | unfairness_level |
|
75 |
+
|-----------------------------------|---------------------|
|
76 |
+
| "You agree to the terms." | clearly_fair |
|
77 |
+
| "We reserve the right to change." | potentially_unfair |
|
78 |
+
| "No refunds will be issued." | clearly_unfair |
|
79 |
+
|
80 |
+
## Usage
|
81 |
+
|
82 |
+
This dataset can be used for various natural language processing tasks, particularly in the context of legal text analysis, fairness assessment, and model training for detecting unfair terms in contracts.
|
83 |
+
|
84 |
+
## How to Load the Dataset
|
85 |
+
|
86 |
+
You can load the dataset using the `datasets` library from Hugging Face:
|
87 |
+
|
88 |
+
```python
|
89 |
+
from datasets import load_dataset
|
90 |
+
|
91 |
+
dataset = load_dataset("TOS_DatasetV3")
|
92 |
+
```
|
93 |
+
## License
|
94 |
+
This dataset is licensed under the MIT License. Please see the LICENSE file for more details.
|
95 |
+
|
96 |
+
## Citation
|
97 |
+
@dataset{TOS_DatasetV3,
|
98 |
+
author = {Himanshu Mohanty},
|
99 |
+
title = {TOS_DatasetV3},
|
100 |
+
year = {2024},
|
101 |
+
url = {https://huggingface.co/datasets/TOS_DatasetV3}
|
102 |
+
}
|