File size: 3,222 Bytes
7372d39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
license: mit
dataset_info:
  features:
  - name: title
    dtype: large_string
  - name: video_id
    dtype: large_string
  - name: transcript
    dtype: large_string
  splits:
  - name: train
    num_bytes: 130792887
    num_examples: 1192
  download_size: 61288449
  dataset_size: 130792887
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
task_categories:
- question-answering
- text-generation
language:
- en
tags:
- code
pretty_name: Free Code Camp Transcripts
size_categories:
- 1K<n<10K
---


# Free Code Camp Transcripts

## Overview

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.

[DataSource](https://www.kaggle.com/datasets/nuhmanpk/all-programming-tutorial-from-free-code-camp)

---

## Dataset Structure

| Column     | Type   | Description                     |
| ---------- | ------ | ------------------------------- |
| title      | string | Title of the YouTube video      |
| video_id   | string | Unique YouTube video identifier |
| transcript | string | Full transcript of the video    |

---

## Dataset Details

* **Total Samples:** 1,192
* **Language:** English
* **Format:** Parquet (auto-converted by Hugging Face)
* **Domain:** Programming / Software Development

---

## How to Load the Dataset

```python
from datasets import load_dataset

dataset = load_dataset("nuhmanpk/freecodecamp-transcripts")
print(dataset)
```

```python
print(dataset["train"][0])
```

---

## Example Record

```python
{
  "title": "PostgreSQL Tutorial for Beginners",
  "video_id": "SpfIwlAYaKk",
  "transcript": "Welcome to this PostgreSQL tutorial..."
}
```

---

## Use Cases

### 1. Text Summarization

```python
from transformers import pipeline

summarizer = pipeline("summarization")

text = dataset["train"][0]["transcript"]
summary = summarizer(text[:2000])

print(summary)
```

---

### 2. Question Answering

```python
from transformers import pipeline

qa = pipeline("question-answering")

context = dataset["train"][0]["transcript"]
question = "What is PostgreSQL?"

result = qa(question=question, context=context)
print(result)
```

---

### 3. Instruction Dataset

```python
def to_instruction(example):
    return {
        "prompt": f"Explain this tutorial: {example['title']}",
        "response": example["transcript"][:1000]
    }

instruction_ds = dataset["train"].map(to_instruction)
```

---

### 4. Embeddings

```python
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("all-MiniLM-L6-v2")

embeddings = model.encode(dataset["train"]["transcript"][:100])
```

---

## Preprocessing Tips

```python
dataset = dataset.filter(lambda x: x["transcript"] != "")
```

```python
def chunk_text(text, size=1000):
    return [text[i:i+size] for i in range(0, len(text), size)]
```

---

## Limitations

* Transcripts may contain noise
* No timestamps
* Limited to programming tutorials

---

## License

MIT License

---

## Future Improvements

* Add topic tags
* Generate QA pairs
* Instruction tuning

---