Commit
·
5b3225a
1
Parent(s):
6f00eee
add custum dataset
Browse files- README.md +52 -3
- test/dataset_dict.json +1 -0
- test/test/data-00000-of-00001.arrow +3 -0
- test/test/dataset_info.json +22 -0
- test/test/state.json +13 -0
- train/dataset_dict.json +1 -0
- train/train/data-00000-of-00001.arrow +3 -0
- train/train/dataset_info.json +16 -0
- train/train/state.json +13 -0
README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Dataset Card for Custom Text Dataset
|
| 3 |
+
|
| 4 |
+
## Dataset Name
|
| 5 |
+
|
| 6 |
+
Custom News Summarization Dataset
|
| 7 |
+
|
| 8 |
+
## Overview
|
| 9 |
+
|
| 10 |
+
The Custom News Summarization Dataset created to to demonstrate text summarization models.
|
| 11 |
+
|
| 12 |
+
## Composition
|
| 13 |
+
|
| 14 |
+
- **Data Fields**:
|
| 15 |
+
- **sentence**: A string containing the text of a news article.
|
| 16 |
+
- **labels**: A string containing the summary of the corresponding news article.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Collection Process
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
## Preprocessing
|
| 23 |
+
|
| 24 |
+
- **Source**: The data is derived from the CNN/DailyMail dataset
|
| 25 |
+
- **Methodology**: A sample article and summary were selected and possibly modified for demonstration purposes.
|
| 26 |
+
|
| 27 |
+
## How to Use
|
| 28 |
+
```python
|
| 29 |
+
import datasets
|
| 30 |
+
|
| 31 |
+
# Define the custom dataset
|
| 32 |
+
|
| 33 |
+
custom_train_data = {
|
| 34 |
+
"sentence": [
|
| 35 |
+
],
|
| 36 |
+
"labels": [
|
| 37 |
+
]
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
#create Dataset
|
| 43 |
+
custom_dataset = datasets.Dataset.from_dict(custom_train_data)
|
| 44 |
+
|
| 45 |
+
## Evaluation
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
## Limitations
|
| 49 |
+
-**Only use summarization**
|
| 50 |
+
|
| 51 |
+
## Ethical Considerations
|
| 52 |
+
|
test/dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["test"]}
|
test/test/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e6aa13a3e10a33624931f6c220c9618528323886bd7b7ac334af681b8dc0646
|
| 3 |
+
size 346576
|
test/test/dataset_info.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"sentence": {
|
| 6 |
+
"feature": {
|
| 7 |
+
"dtype": "string",
|
| 8 |
+
"_type": "Value"
|
| 9 |
+
},
|
| 10 |
+
"_type": "Sequence"
|
| 11 |
+
},
|
| 12 |
+
"labels": {
|
| 13 |
+
"feature": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"_type": "Sequence"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"homepage": "",
|
| 21 |
+
"license": ""
|
| 22 |
+
}
|
test/test/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "a966e5e39a3a551f",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|
train/dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["train"]}
|
train/train/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3b84a293ed7afd9641f578c760558feab774e12174775ffef3bd6d130873903
|
| 3 |
+
size 1400
|
train/train/dataset_info.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"sentence": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"labels": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
"homepage": "",
|
| 15 |
+
"license": ""
|
| 16 |
+
}
|
train/train/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "a1df46296853828f",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|