Fabian Retkowski
commited on
Commit
·
5fd146d
1
Parent(s):
2c5a859
Update column names for YTSeg (Titles) config + update README
Browse files- README.md +43 -15
- data/partitions/yt_seg_titles.test.json +2 -2
- data/partitions/yt_seg_titles.train.json +2 -2
- data/partitions/yt_seg_titles.val.json +2 -2
- data/yt_seg.json +0 -3
- data/yt_seg_titles.json +0 -3
README.md
CHANGED
|
@@ -152,15 +152,36 @@ Multiple target formats are provided for different modeling approaches.
|
|
| 152 |
| Testing | 1,448 (7.5%) |
|
| 153 |
| Total | 19,299 |
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
### <span style="font-variant:small-caps;">YTSeg</span> (Titles)
|
| 156 |
|
| 157 |
Each chapter of a video is represented as a JSON object with the following fields:
|
| 158 |
|
| 159 |
| Field | Description |
|
| 160 |
|--------------|------------------------------------------------|
|
| 161 |
-
| `
|
| 162 |
-
| `
|
| 163 |
-
| `
|
| 164 |
| `channel_id` | The YouTube channel ID which this chapter's video belongs to. |
|
| 165 |
| `video_id` | The YouTube video ID which this chapter belongs to. |
|
| 166 |
| `chapter_idx` | The index and placement of the chapter in the video (e.g., the first chapter has index `0`). |
|
|
@@ -172,10 +193,6 @@ Each chapter of a video is represented as a JSON object with the following field
|
|
| 172 |
| Testing | 13,082 (7.6%) |
|
| 173 |
| Total | 173,195 |
|
| 174 |
|
| 175 |
-
### Audio Data
|
| 176 |
-
|
| 177 |
-
We provide audio files for all examples in the dataset, preprocessed into the .mp3 format with a standardized sample rate of 16,000 Hz and a single channel (mono). These files are organized within the directory structure as follows: `data/audio/<channel_id>/<video_id>.mp3`.
|
| 178 |
-
|
| 179 |
### Video Data
|
| 180 |
|
| 181 |
A download script for the video and audio data is provided.
|
|
@@ -186,20 +203,27 @@ python download_videos.py
|
|
| 186 |
|
| 187 |
In the script, you can further specify a target folder (default is `./video`) and target formats in a priority list.
|
| 188 |
|
| 189 |
-
## Loading
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
```py
|
| 194 |
-
from
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
```
|
| 197 |
|
| 198 |
-
|
| 199 |
|
| 200 |
```py
|
| 201 |
-
|
| 202 |
-
test_data = get_title_partition('test')
|
| 203 |
```
|
| 204 |
|
| 205 |
## Citing
|
|
@@ -223,7 +247,11 @@ We kindly request you to cite our corresponding EACL 2024 paper if you use our d
|
|
| 223 |
```
|
| 224 |
## Changelog
|
| 225 |
|
| 226 |
-
- 20.01.2025 -- Major data
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
- 25.07.2024 -- Added complete list of chapter titles to `YTSeg` (`YTSeg[Titles]` is a filtered subset)
|
| 228 |
- 09.04.2024 -- Added audio data
|
| 229 |
- 27.02.2024 -- Initial release
|
|
|
|
| 152 |
| Testing | 1,448 (7.5%) |
|
| 153 |
| Total | 19,299 |
|
| 154 |
|
| 155 |
+
### <span style="font-variant:small-caps;">YTSeg</span> (Audio)
|
| 156 |
+
|
| 157 |
+
The audio config provides the complete dataset with embedded audio files. Each video is represented with the same fields as the text config, plus an `audio` field containing the preprocessed audio data.
|
| 158 |
+
|
| 159 |
+
#### Audio
|
| 160 |
+
|
| 161 |
+
| Field | Description |
|
| 162 |
+
|--------|-------------|
|
| 163 |
+
| `audio` | Audio data preprocessed into .mp3 format with a standardized sample rate of 16,000 Hz and a single channel (mono). |
|
| 164 |
+
|
| 165 |
+
All other fields (transcripts, target representations, and metadata) are identical to the Text config described above.
|
| 166 |
+
|
| 167 |
+
#### Partition Statistics
|
| 168 |
+
|
| 169 |
+
| Partition | # Examples | Size (GB) |
|
| 170 |
+
|------------|--------------|-----------|
|
| 171 |
+
| Training | 16,404 (85%) | ~57.9 GB |
|
| 172 |
+
| Validation | 1,447 (7.5%) | ~5.1 GB |
|
| 173 |
+
| Testing | 1,448 (7.5%) | ~5.3 GB |
|
| 174 |
+
| Total | 19,299 | ~68.3 GB |
|
| 175 |
+
|
| 176 |
### <span style="font-variant:small-caps;">YTSeg</span> (Titles)
|
| 177 |
|
| 178 |
Each chapter of a video is represented as a JSON object with the following fields:
|
| 179 |
|
| 180 |
| Field | Description |
|
| 181 |
|--------------|------------------------------------------------|
|
| 182 |
+
| `text_section_ref` | The complete chapter/section text. |
|
| 183 |
+
| `text_section_prev_titles_ref` | The complete chapter/section text with previous section titles prepended. |
|
| 184 |
+
| `target_title` | The target chapter title. |
|
| 185 |
| `channel_id` | The YouTube channel ID which this chapter's video belongs to. |
|
| 186 |
| `video_id` | The YouTube video ID which this chapter belongs to. |
|
| 187 |
| `chapter_idx` | The index and placement of the chapter in the video (e.g., the first chapter has index `0`). |
|
|
|
|
| 193 |
| Testing | 13,082 (7.6%) |
|
| 194 |
| Total | 173,195 |
|
| 195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
### Video Data
|
| 197 |
|
| 198 |
A download script for the video and audio data is provided.
|
|
|
|
| 203 |
|
| 204 |
In the script, you can further specify a target folder (default is `./video`) and target formats in a priority list.
|
| 205 |
|
| 206 |
+
## Loading Data
|
| 207 |
|
| 208 |
+
The dataset can be loaded directly using the HuggingFace `datasets` library:
|
| 209 |
|
| 210 |
```py
|
| 211 |
+
from datasets import load_dataset
|
| 212 |
+
|
| 213 |
+
# Load the audio config (with embedded audio)
|
| 214 |
+
dataset = load_dataset("retkowski/ytseg", "audio", split="test")
|
| 215 |
+
|
| 216 |
+
# Load the text config (text-only)
|
| 217 |
+
dataset = load_dataset("retkowski/ytseg", "text", split="test")
|
| 218 |
+
|
| 219 |
+
# Load the titles config
|
| 220 |
+
dataset = load_dataset("retkowski/ytseg", "titles", split="test")
|
| 221 |
```
|
| 222 |
|
| 223 |
+
**Note on Binary Labels:** The binary segmentation labels (e.g., `target_binary_ref`) are prefixed with `|=` to force the field to be stored as a string, preventing leading zeros from being lost during processing. For actual usage, strip the `|=` prefix:
|
| 224 |
|
| 225 |
```py
|
| 226 |
+
binary_labels = dataset['target_binary_ref'].lstrip('|=')
|
|
|
|
| 227 |
```
|
| 228 |
|
| 229 |
## Citing
|
|
|
|
| 247 |
```
|
| 248 |
## Changelog
|
| 249 |
|
| 250 |
+
- 20.01.2025 -- Major data and format update:
|
| 251 |
+
- Added ASR transcripts (Whisper-tiny and Whisper-large), structured transcript targets with timestamps, and metadata for finer-grained analysis (speaker category, dominant speaker proportion, number of speakers, duration)
|
| 252 |
+
- Added audio config with HuggingFace Audio feature for seamless loading with embedded audio
|
| 253 |
+
- Updated to use HuggingFace `datasets` library for data loading (replacing local pandas scripts and use proper HF configs)
|
| 254 |
+
- Updated `YTSeg[Titles]` field names for clarity
|
| 255 |
- 25.07.2024 -- Added complete list of chapter titles to `YTSeg` (`YTSeg[Titles]` is a filtered subset)
|
| 256 |
- 09.04.2024 -- Added audio data
|
| 257 |
- 27.02.2024 -- Initial release
|
data/partitions/yt_seg_titles.test.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3453d3f9da2c968e148f66249ea405843658d2f73eaa7bd0b514829d242879a8
|
| 3 |
+
size 57649596
|
data/partitions/yt_seg_titles.train.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27f9cabf48dc8922363737a8bc2d712dff743bd9306d44d2c54bd86b224674f9
|
| 3 |
+
size 631405083
|
data/partitions/yt_seg_titles.val.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:faa454c4d7560312c4b6f115b4f0631ca9c6d82e932a8c012fe7a22c47125dad
|
| 3 |
+
size 57437666
|
data/yt_seg.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:facc61de7cef8946eeba8088fa4767356ffab817452d4ee451bc1af143cf03b9
|
| 3 |
-
size 375964324
|
|
|
|
|
|
|
|
|
|
|
|
data/yt_seg_titles.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d42e3f37424d3ac38c3a30d074902771251732a2eaea67aa279e5a81c7208286
|
| 3 |
-
size 743018461
|
|
|
|
|
|
|
|
|
|
|
|