原书出处
Natural Language Processing in Action, Second Edition
Listing 9.3 Loading a translation dataset in Hugging Face format >>> sents = opus['train'].train_test_split(test_size=.1) >>> sents DatasetDict({ train: Dataset({ features: ['id', 'translation'], num_rows: 48893 }) test: Dataset({ features: ['id', 'translation'], num_rows: 2574 }) }) It’s always a good idea to examine some examples in your dataset before you start a long training run. This can help you make sure the data is what you expect.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-9.html
EPUB SHA-256:0e9a35e49ca446e322e5524e53f39fb6bee5b2b23d9cda10ef052aca770b0b36