delip / PyTorchNLPBook

Code and data accompanying Natural Language Processing with PyTorch published by O'Reilly Media https://amzn.to/3JUgR2L
Apache License 2.0
1.96k stars 799 forks source link

easier way to split the datasets #27

Open YameiW opened 4 years ago

YameiW commented 4 years ago

Hello, I rewrite the code to subset the full dataset and split the dataset. I think the logic in my code is easier to understand. I hope it is helpful.

ds-manav commented 2 years ago

can you help me in understanding this code?