247598d255f926b6adfada1cbfde909ca3d801ba,torchtext/datasets/imdb.py,IMDB,splits,#Any#Any#Any#Any#Any#Any#,39
Before Change
train_data = None if train is None else cls(
os.path.join(path, train), text_field, label_field, **kwargs)
test_data = None if test is None else cls(
os.path.join(path, test), text_field, label_field, **kwargs)
return tuple(d for d in (train_data, test_data)
if d is not None)
@classmethod
After Change
Remaining keyword arguments: Passed to the splits method of
Dataset.
return super(IMDB, cls).splits(
root=root, text_field=text_field, label_field=label_field,
train=train, validation=None, test=test, **kwargs)
@classmethod
def iters(cls, batch_size=32, device=0, root=".data", vectors=None, **kwargs):
Creater iterator objects for splits of the IMDB dataset.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pytorch/text
Commit Name: 247598d255f926b6adfada1cbfde909ca3d801ba
Time: 2017-10-15
Author: jekbradbury@gmail.com
File Name: torchtext/datasets/imdb.py
Class Name: IMDB
Method Name: splits
Project Name: pytorch/text
Commit Name: 247598d255f926b6adfada1cbfde909ca3d801ba
Time: 2017-10-15
Author: jekbradbury@gmail.com
File Name: torchtext/datasets/trec.py
Class Name: TREC
Method Name: splits
Project Name: pytorch/text
Commit Name: dd01cd4dd9a6a6839a40cc62492836b15b153d86
Time: 2017-03-02
Author: jekbradbury@gmail.com
File Name: torchtext/datasets/snli.py
Class Name: SNLI
Method Name: splits