title
stringlengths 12
112
| published
stringlengths 19
23
| url
stringlengths 28
28
| video_id
stringlengths 11
11
| channel_id
stringclasses 5
values | id
stringlengths 16
31
| text
stringlengths 0
596
| start
float64 0
37.8k
| end
float64 2.18
37.8k
|
---|---|---|---|---|---|---|---|---|
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t430.96
|
Transfer no data set. Sorry
| 430.96 | 439.76 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t437.76
|
Import
| 437.76 | 446.08 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t439.76
|
Import from data sets utils import download manager
| 439.76 | 450.48 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t447.68
|
Might not be there. Maybe it's here. Let's see
| 447.68 | 456.96 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t453.2
|
Okay, it was that so dl manager and i'm just going to
| 453.2 | 462.48 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t457.84
|
Initialize it. This is kind of happening in the background of our of our builder script
| 457.84 | 466 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t462.96
|
So we don't actually do this in the build script. It just kind of happens
| 462.96 | 467.76 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t466.56
|
so
| 466.56 | 470.08 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t467.76
|
We do that and then let's just
| 467.76 | 474.8 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t470.71999999999997
|
Copy what we have elsewhere. So we have the url
| 470.72 | 478.72 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t476.71999999999997
|
And it is this okay, that is the euro
| 476.72 | 483.86 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t479.28
|
And let's just see what this output so download manager and download
| 479.28 | 486.16 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t484.64
|
and extract
| 484.64 | 489.52 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t486.15999999999997
|
Your up. Okay. Let's see what we get. Um
| 486.16 | 492.48 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t490.48
|
We'll call this out
| 490.48 | 494.48 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t492.48
|
We'll call this out
| 492.48 | 501.12 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t499.20000000000005
|
Okay, so we see
| 499.2 | 504.32 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t501.12
|
We get a file path from that now. Okay
| 501.12 | 511.36 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t505.34000000000003
|
Interesting. So what let's have a look at what is in that file path. So os list out
| 505.34 | 520.4 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t512.8000000000001
|
Okay, so now we can see we actually have that json lines file that we that we put inside our
| 512.8 | 522.4 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t520.4
|
our compressed tar file
| 520.4 | 524.96 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t522.9599999999999
|
so
| 522.96 | 529.06 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t525.14
|
Okay, what what does that mean for us it means we can actually just load that
| 525.14 | 535.06 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t529.62
|
From here based on what the download manager is giving us. Okay. So this is like a cached location
| 529.62 | 537.7 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t535.6999999999999
|
for our particular data set
| 535.7 | 543.78 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t539.78
|
So return to the builder script, uh, we have download files
| 539.78 | 547.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t544.42
|
I I don't really like the name so i'm just going to call it path
| 544.42 | 549.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t548.8199999999999
|
um
| 548.82 | 553.3 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t549.94
|
I'm gonna say path here as well remove train
| 549.94 | 557.22 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t554.58
|
And if we just have a look at the path
| 554.58 | 565.38 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t560.0200000000001
|
Um, it is it is just the directory that contains our data set of json
| 560.02 | 568.82 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t565.7800000000001
|
Okay, or json lines file. So actually what we need to do
| 565.78 | 572.34 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t569.46
|
Is we need to do like out plus?
| 569.46 | 576.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t573.86
|
Data set dot json out
| 573.86 | 583.3 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t576.18
|
Okay, this this will give us a full path to our file. So that is what we're going to do here
| 576.18 | 591.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t585.3
|
So, where are we um, so path let's I mean it's a bit easy to read okay come here
| 585.3 | 595.3 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t593.3
|
Zoom out a little bit
| 593.3 | 600.58 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t598.42
|
Okay, so it will be path
| 598.42 | 606.66 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t600.58
|
And then here we have data set dot json out, okay
| 600.58 | 609.7 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t607.7
|
And yeah, that's how
| 607.7 | 614.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t610.5
|
That's a split generators function here. And what that will do
| 610.5 | 617.22 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t614.98
|
Is you see that we have this file path here?
| 614.98 | 622.02 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t617.94
|
That is going to get passed along to this generate examples
| 617.94 | 624.82 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t622.82
|
function or method and
| 622.82 | 628.66 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t625.38
|
Is this method that is going to kind of output the data set?
| 625.38 | 632.9 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t628.66
|
method that is going to kind of output the rows of the data set to us
| 628.66 | 635.46 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t633.86
|
so
| 633.86 | 637.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t635.4599999999999
|
What we need to do is actually
| 635.46 | 641.62 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t639.06
|
Just use this to kind of read our data set now
| 639.06 | 646.02 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t642.18
|
It you know just kind of doing that from from stretcher seeing what's happening. It's kind of hard
| 642.18 | 650.26 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t646.02
|
So let's let's return to that the notebook file and see how we can do that
| 646.02 | 654.34 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t652.26
|
So we're here we have our
| 652.26 | 660.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t654.34
|
Our let's call this file path now because this is what we've created in the other file. It's a file path
| 654.34 | 669.14 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t663.7
|
And what we're going to do file path is well first we need to import json because it's a json minus file
| 663.7 | 670.74 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t669.14
|
so we're gonna have to
| 669.14 | 672.74 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t670.74
|
read that and
| 670.74 | 676.5 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t672.82
|
Exactly. We actually want to do this so as fp
| 672.82 | 680.98 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t677.38
|
I don't think we even need to put encoding there, but we'll put it to be safe
| 677.38 | 682.26 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t680.98
|
And
| 680.98 | 685.7 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t682.26
|
What we're going to do is we're going to go through that so for line
| 682.26 | 690.5 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t686.5
|
In fp it's a json lines file. So there's just lines of data
| 686.5 | 697.46 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t691.86
|
Each one those lines represents a json object. So we are going to
| 691.86 | 701.06 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t698.26
|
Oh, we can we can just print it from now in in here
| 698.26 | 703.78 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t702.26
|
so
| 702.26 | 707.54 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t703.78
|
Let's put a count on this. So we'll print out a few items, but not too many
| 703.78 | 710.34 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t707.54
|
so if count is
| 707.54 | 713.54 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t711.54
|
5 break
| 711.54 | 721.3 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t714.3399999999999
|
Okay, let's see what we get. Okay, cool. So we can see that we we get a few items here. All right
| 714.34 | 728.5 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t722.9
|
So we're just kind of going through those of red file and we're just looping through and and printing them
| 722.9 | 732.42 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t729.6999999999999
|
So we can do the same over in our other
| 729.7 | 740.34 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t732.42
|
So we can do the same over in our other file in the builder script so let's come to here
| 732.42 | 744.5 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t742.5
|
Copy this in now
| 742.5 | 747.78 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t745.78
|
All of this we can see here. Okay
| 745.78 | 754.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t748.5
|
Some of this we will need not all of it. So let's go ahead and just remove what we don't need
| 748.5 | 757.86 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t755.86
|
Okay, this is all we need
| 755.86 | 763.22 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t757.86
|
Um this yield so because this uh generator example is creating a generator function
| 757.86 | 764.9 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t763.94
|
right
| 763.94 | 766.66 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t764.9
|
so
| 764.9 | 768.66 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t766.66
|
Let's come here remove
| 766.66 | 774.26 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t769.7
|
Remove parts of this. So the line or the we should call it a record
| 769.7 | 777.14 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t775.14
|
Is equal to json dot loads
| 775.14 | 779.38 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t778.1800000000001
|
line
| 778.18 | 781.38 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t779.38
|
Maybe we'll call it object
| 779.38 | 784.66 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t782.66
|
Okay
| 782.66 | 787.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t784.66
|
And within the object we have a few
| 784.66 | 792.82 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t788.66
|
A few different key value pairs, right? So what are those?
| 788.66 | 795.94 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t793.38
|
We can have a look at the the make tar file
| 793.38 | 802.98 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t797.6999999999999
|
File and we have we have all these here so we have subtitle self text
| 797.7 | 806.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t803.3
|
Up vote ratio id and create utc now
| 803.3 | 812.02 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t806.74
|
We can actually just pass all of these directly onto the next so we can yield all of these
| 806.74 | 814.34 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t812.02
|
So let me show you what I mean by that
| 812.02 | 820.74 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t814.9
|
So we come here and you see that we're just yielding and then we're yielding this dictionary type structure for squad
| 814.9 | 825.38 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t820.74
|
All right, so as we already have that dictionary type structure because we use a json lines file
| 820.74 | 832.18 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t825.38
|
This is one of the reasons I like using them. So we can actually just do yield key object like that now
| 825.38 | 834.9 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t832.9
|
Okay, what is um, what is key?
| 832.9 | 842.42 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t834.9
|
Key is actually the index value or id value if you if you want, but it's an index value
| 834.9 | 845.86 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t843.86
|
So i'm going to rename it
| 843.86 | 848.26 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t846.02
|
Index because that makes more sense to me than key
| 846.02 | 852.98 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t848.8199999999999
|
And yeah, here we go. So we have
| 848.82 | 863.54 |
Hugging Face Datasets #2 - Dataset Builder Scripts
|
2022-09-23 14:45:22 UTC
|
https://youtu.be/ODdKC30dT8c
|
ODdKC30dT8c
|
UCv83tO5cePwHMt1952IVVHw
|
ODdKC30dT8c-t852.98
|
We have set up here we're going to open the file located or let's let's do that and read the lines. Um,
| 852.98 | 868.18 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.