nuhmanpk commited on
Commit
7372d39
·
verified ·
1 Parent(s): 142bb93

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +183 -22
README.md CHANGED
@@ -1,22 +1,183 @@
1
- ---
2
- license: mit
3
- dataset_info:
4
- features:
5
- - name: title
6
- dtype: large_string
7
- - name: video_id
8
- dtype: large_string
9
- - name: transcript
10
- dtype: large_string
11
- splits:
12
- - name: train
13
- num_bytes: 130792887
14
- num_examples: 1192
15
- download_size: 61288449
16
- dataset_size: 130792887
17
- configs:
18
- - config_name: default
19
- data_files:
20
- - split: train
21
- path: data/train-*
22
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ dataset_info:
4
+ features:
5
+ - name: title
6
+ dtype: large_string
7
+ - name: video_id
8
+ dtype: large_string
9
+ - name: transcript
10
+ dtype: large_string
11
+ splits:
12
+ - name: train
13
+ num_bytes: 130792887
14
+ num_examples: 1192
15
+ download_size: 61288449
16
+ dataset_size: 130792887
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: train
21
+ path: data/train-*
22
+ task_categories:
23
+ - question-answering
24
+ - text-generation
25
+ language:
26
+ - en
27
+ tags:
28
+ - code
29
+ pretty_name: Free Code Camp Transcripts
30
+ size_categories:
31
+ - 1K<n<10K
32
+ ---
33
+
34
+
35
+ # Free Code Camp Transcripts
36
+
37
+ ## Overview
38
+
39
+ This dataset contains transcripts of programming tutorials from FreeCodeCamp videos. Each entry includes the video title, YouTube video ID, and the full transcript, making it suitable for training and evaluating NLP and LLM systems focused on developer education.
40
+
41
+ [DataSource](https://www.kaggle.com/datasets/nuhmanpk/all-programming-tutorial-from-free-code-camp)
42
+
43
+ ---
44
+
45
+ ## Dataset Structure
46
+
47
+ | Column | Type | Description |
48
+ | ---------- | ------ | ------------------------------- |
49
+ | title | string | Title of the YouTube video |
50
+ | video_id | string | Unique YouTube video identifier |
51
+ | transcript | string | Full transcript of the video |
52
+
53
+ ---
54
+
55
+ ## Dataset Details
56
+
57
+ * **Total Samples:** 1,192
58
+ * **Language:** English
59
+ * **Format:** Parquet (auto-converted by Hugging Face)
60
+ * **Domain:** Programming / Software Development
61
+
62
+ ---
63
+
64
+ ## How to Load the Dataset
65
+
66
+ ```python
67
+ from datasets import load_dataset
68
+
69
+ dataset = load_dataset("nuhmanpk/freecodecamp-transcripts")
70
+ print(dataset)
71
+ ```
72
+
73
+ ```python
74
+ print(dataset["train"][0])
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Example Record
80
+
81
+ ```python
82
+ {
83
+ "title": "PostgreSQL Tutorial for Beginners",
84
+ "video_id": "SpfIwlAYaKk",
85
+ "transcript": "Welcome to this PostgreSQL tutorial..."
86
+ }
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Use Cases
92
+
93
+ ### 1. Text Summarization
94
+
95
+ ```python
96
+ from transformers import pipeline
97
+
98
+ summarizer = pipeline("summarization")
99
+
100
+ text = dataset["train"][0]["transcript"]
101
+ summary = summarizer(text[:2000])
102
+
103
+ print(summary)
104
+ ```
105
+
106
+ ---
107
+
108
+ ### 2. Question Answering
109
+
110
+ ```python
111
+ from transformers import pipeline
112
+
113
+ qa = pipeline("question-answering")
114
+
115
+ context = dataset["train"][0]["transcript"]
116
+ question = "What is PostgreSQL?"
117
+
118
+ result = qa(question=question, context=context)
119
+ print(result)
120
+ ```
121
+
122
+ ---
123
+
124
+ ### 3. Instruction Dataset
125
+
126
+ ```python
127
+ def to_instruction(example):
128
+ return {
129
+ "prompt": f"Explain this tutorial: {example['title']}",
130
+ "response": example["transcript"][:1000]
131
+ }
132
+
133
+ instruction_ds = dataset["train"].map(to_instruction)
134
+ ```
135
+
136
+ ---
137
+
138
+ ### 4. Embeddings
139
+
140
+ ```python
141
+ from sentence_transformers import SentenceTransformer
142
+
143
+ model = SentenceTransformer("all-MiniLM-L6-v2")
144
+
145
+ embeddings = model.encode(dataset["train"]["transcript"][:100])
146
+ ```
147
+
148
+ ---
149
+
150
+ ## Preprocessing Tips
151
+
152
+ ```python
153
+ dataset = dataset.filter(lambda x: x["transcript"] != "")
154
+ ```
155
+
156
+ ```python
157
+ def chunk_text(text, size=1000):
158
+ return [text[i:i+size] for i in range(0, len(text), size)]
159
+ ```
160
+
161
+ ---
162
+
163
+ ## Limitations
164
+
165
+ * Transcripts may contain noise
166
+ * No timestamps
167
+ * Limited to programming tutorials
168
+
169
+ ---
170
+
171
+ ## License
172
+
173
+ MIT License
174
+
175
+ ---
176
+
177
+ ## Future Improvements
178
+
179
+ * Add topic tags
180
+ * Generate QA pairs
181
+ * Instruction tuning
182
+
183
+ ---