Skip to content

Commit

Permalink
small fix multi when common root in data_ids (OpenNMT#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoishernandez authored and vince62s committed May 23, 2019
1 parent 8ff0071 commit 7f1fc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/inputters/inputter.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def build_dataset_iter(corpus_type, fields, opt, is_train=True, multi=False):
but more sophisticated strategy like curriculum learning is ok too.
"""
dataset_paths = list(sorted(
glob.glob(opt.data + '.' + corpus_type + '*.pt')))
glob.glob(opt.data + '.' + corpus_type + '.[0-9]*.pt')))
if not dataset_paths:
return None
if multi:
Expand Down

0 comments on commit 7f1fc81

Please sign in to comment.