updated ReadME.md
Browse files
README.md
CHANGED
@@ -5,140 +5,88 @@ task_categories:
|
|
5 |
language:
|
6 |
- en
|
7 |
---
|
8 |
-
# Dataset Card for
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).
|
13 |
|
14 |
## Dataset Details
|
15 |
|
16 |
### Dataset Description
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
- **Curated by:** [More Information Needed]
|
23 |
-
- **Funded by [optional]:** [More Information Needed]
|
24 |
-
- **Shared by [optional]:** [More Information Needed]
|
25 |
-
- **Language(s) (NLP):** [More Information Needed]
|
26 |
-
- **License:** [More Information Needed]
|
27 |
-
|
28 |
-
### Dataset Sources [optional]
|
29 |
-
|
30 |
-
<!-- Provide the basic links for the dataset. -->
|
31 |
-
|
32 |
-
- **Repository:** [More Information Needed]
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
-
|
36 |
-
## Uses
|
37 |
-
|
38 |
-
<!-- Address questions around how the dataset is intended to be used. -->
|
39 |
-
|
40 |
-
### Direct Use
|
41 |
-
|
42 |
-
<!-- This section describes suitable use cases for the dataset. -->
|
43 |
-
|
44 |
-
[More Information Needed]
|
45 |
-
|
46 |
-
### Out-of-Scope Use
|
47 |
-
|
48 |
-
<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
-
|
52 |
-
## Dataset Structure
|
53 |
-
|
54 |
-
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
|
55 |
-
|
56 |
-
[More Information Needed]
|
57 |
|
58 |
-
|
|
|
|
|
|
|
59 |
|
60 |
-
###
|
61 |
|
62 |
-
|
63 |
|
64 |
-
|
65 |
|
66 |
-
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
73 |
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
-
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
-
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
<!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
|
85 |
-
|
86 |
-
#### Annotation process
|
87 |
-
|
88 |
-
<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
-
#### Who are the annotators?
|
93 |
-
|
94 |
-
<!-- This section describes the people or systems who created the annotations. -->
|
95 |
-
|
96 |
-
[More Information Needed]
|
97 |
-
|
98 |
-
#### Personal and Sensitive Information
|
99 |
-
|
100 |
-
<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
|
101 |
-
|
102 |
-
[More Information Needed]
|
103 |
-
|
104 |
-
## Bias, Risks, and Limitations
|
105 |
-
|
106 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
107 |
-
|
108 |
-
[More Information Needed]
|
109 |
-
|
110 |
-
### Recommendations
|
111 |
-
|
112 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
113 |
-
|
114 |
-
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
|
115 |
-
|
116 |
-
## Citation [optional]
|
117 |
-
|
118 |
-
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
119 |
|
120 |
-
|
121 |
|
122 |
-
|
123 |
|
124 |
-
|
125 |
|
126 |
-
|
127 |
|
128 |
-
|
|
|
129 |
|
130 |
-
|
|
|
|
|
131 |
|
132 |
-
|
|
|
133 |
|
134 |
-
|
|
|
|
|
|
|
135 |
|
136 |
-
|
137 |
|
138 |
-
|
139 |
|
140 |
-
|
|
|
141 |
|
142 |
-
##
|
|
|
143 |
|
144 |
-
[More Information Needed]
|
|
|
5 |
language:
|
6 |
- en
|
7 |
---
|
8 |
+
# Dataset Card for News Summarization
|
9 |
|
10 |
+
This dataset card documents the News Summary dataset used for training a T5 model specialized in summarization tasks, particularly focusing on news articles.
|
|
|
|
|
11 |
|
12 |
## Dataset Details
|
13 |
|
14 |
### Dataset Description
|
15 |
|
16 |
+
The News Summary dataset contains pairs of full-length news articles and their corresponding summaries. It was curated to train models that can generate concise and informative summaries of longer texts. This dataset is valuable for natural language processing tasks related to summarization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
+
- **Curated by:** Sunny Srinidhi
|
19 |
+
- **Shared by:** Kaggle
|
20 |
+
- **Language(s) (NLP):** English
|
21 |
+
- **License:** Dataset-specific license
|
22 |
|
23 |
+
### Dataset Sources
|
24 |
|
25 |
+
- **Repository:** [Kaggle Dataset Link](https://www.kaggle.com/datasets/sunnysai12345/news-summary)
|
26 |
|
27 |
+
## Model Description
|
28 |
|
29 |
+
This T5 model is fine-tuned specifically for the task of summarizing news articles. It leverages the extensive pre-training of the T5 base model and adapts it to generate concise summaries of news content, aiming to maintain the core message and essential details.
|
30 |
|
31 |
+
## Training Procedure
|
32 |
|
33 |
+
The model was trained using the `Seq2SeqTrainer` from the Hugging Face Transformers library on a custom dataset. Training involved a sequence-to-sequence model that was fine-tuned with news article data, tokenized using the corresponding T5 tokenizer.
|
34 |
|
35 |
+
### Hyperparameters
|
36 |
|
37 |
+
- **Evaluation Strategy:** Epoch
|
38 |
+
- **Learning Rate:** 0.00002
|
39 |
+
- **Train Batch Size per Device:** 8
|
40 |
+
- **Eval Batch Size per Device:** 8
|
41 |
+
- **Weight Decay:** 0.01
|
42 |
+
- **Save Total Limit:** 2
|
43 |
+
- **Number of Training Epochs:** 4
|
44 |
+
- **Use FP16 Precision:** True
|
45 |
+
- **Reporting:** None
|
46 |
|
47 |
+
## Training Metrics Table
|
48 |
|
49 |
+
| Epoch | Training Loss | Validation Loss | ROUGE-1 | ROUGE-2 | ROUGE-L |
|
50 |
+
|-------|---------------|-----------------|------------------------------------------|------------------------------------------|------------------------------------------|
|
51 |
+
| 1 | No log | 1.401181 | r: 17.15%, p: 63.80%, f: 26.83% | r: 7.86%, p: 36.02%, f: 12.81% | r: 15.90%, p: 59.24%, f: 24.89% |
|
52 |
+
| 2 | 1.594900 | 1.367020 | r: 17.47%, p: 65.14%, f: 27.36% | r: 8.01%, p: 36.98%, f: 13.07% | r: 16.17%, p: 60.43%, f: 25.33% |
|
53 |
+
| 3 | 1.461500 | 1.354850 | r: 17.68%, p: 65.80%, f: 27.67% | r: 8.13%, p: 37.65%, f: 13.28% | r: 16.34%, p: 60.95%, f: 25.58% |
|
54 |
+
| 4 | 1.434300 | 1.352294 | r: 17.77%, p: 66.08%, f: 27.81% | r: 8.25%, p: 38.09%, f: 13.47% | r: 16.45%, p: 61.30%, f: 25.75% |
|
55 |
|
56 |
+
Training Output: Global step=1692, training loss=1.4874611712516623, train runtime=1579.3283 seconds, samples per second=8.571, steps per second=1.071, total FLOPs=8232596872151040.0, epoch=4.
|
57 |
|
58 |
+
## Uses
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
+
### Direct Use
|
61 |
|
62 |
+
This dataset is primarily used for training and evaluating machine learning models on the summarization task. It is suitable for developing algorithms that require understanding and processing of news-style writing to produce summaries.
|
63 |
|
64 |
+
### Usage
|
65 |
|
66 |
+
The model can be used directly via the Hugging Face `pipeline` for summarization tasks. Here is a sample code snippet:
|
67 |
|
68 |
+
```python
|
69 |
+
from transformers import pipeline
|
70 |
|
71 |
+
# Load the model
|
72 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("t5-news")
|
73 |
+
tokenizer = AutoTokenizer.from_pretrained("t5-news")
|
74 |
|
75 |
+
# Create summarizer pipeline
|
76 |
+
summarizer = pipeline("summarization", model=model, tokenizer=tokenizer)
|
77 |
|
78 |
+
# Summarize text
|
79 |
+
text = "Your news article text here"
|
80 |
+
print(summarizer(text))
|
81 |
+
```
|
82 |
|
83 |
+
### Out-of-Scope Use
|
84 |
|
85 |
+
The dataset may not be suitable for tasks requiring fine-grained sentiment analysis, detailed factual extraction, or tasks outside the English language.
|
86 |
|
87 |
+
## Evaluation Metrics
|
88 |
+
The model was evaluated using ROUGE metrics which measure the overlap of n-grams between the generated summaries and reference summaries. This metric is standard for evaluating summarization models.
|
89 |
|
90 |
+
## Conclusion
|
91 |
+
This T5 model provides a robust solution for summarizing news articles, equipped to handle a variety of news formats and contents effectively. It is particularly useful for applications requiring quick generation of concise summaries from lengthy news articles.
|
92 |
|
|