Merge pull request #140 from stanford-oval/dependabot/pip/datasets-1.6.2

Bump datasets from 1.5.0 to 1.6.2
This commit is contained in:
Mehrad Moradshahi 2021-05-21 16:22:56 -07:00 committed by GitHub
commit f1e722b049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -72,22 +72,22 @@ class HFDataset(CQA):
train_data, validation_data, test_data = None, None, None
train_path, validation_path, test_path = None, None, None
if train:
train_data = load_dataset(name, split='train', cache_dir=root)
train_data = load_dataset(name, split='train', cache_dir=root, keep_in_memory=False)
train_path = train_data.cache_files[0]['filename']
if validation:
validation_data = load_dataset(name, split=validation, cache_dir=root)
validation_data = load_dataset(name, split=validation, cache_dir=root, keep_in_memory=False)
validation_path = validation_data.cache_files[0]['filename']
if test:
test_data = load_dataset(name, split='test', cache_dir=root)
test_data = load_dataset(name, split='test', cache_dir=root, keep_in_memory=False)
test_path = test_data.cache_files[0]['filename']
if kwargs.pop('hf_test_overfit', False):
# override validation/ test data with train data
if validation:
validation_data = load_dataset(name, split='train', cache_dir=root)
validation_data = load_dataset(name, split='train', cache_dir=root, keep_in_memory=False)
validation_path = validation_data.cache_files[0]['filename']
if test:
test_data = load_dataset(name, split='train', cache_dir=root)
test_data = load_dataset(name, split='train', cache_dir=root, keep_in_memory=False)
test_path = test_data.cache_files[0]['filename']
train_data = None if train is None else cls(train_data, **kwargs)

View File

@ -54,7 +54,7 @@ setuptools.setup(
'pyrouge>=0.1.3',
'sacrebleu~=1.0',
'requests~=2.22',
'datasets==1.5.0',
'datasets==1.6.2',
'seqeval==1.2.2',
'transformers==4.5.1',
'sentencepiece==0.1.*',