Commit a00ce132 authored by Myle Ott's avatar Myle Ott Committed by Facebook Github Bot
Browse files

Fix Python 3.5 compat

Summary: Pull Request resolved: https://github.com/pytorch/fairseq/pull/1005

Differential Revision: D16751489

Pulled By: myleott

fbshipit-source-id: 6e372ac23643e32a3791044c13f4466bdc28f049
parent b6c55b62
......@@ -144,7 +144,7 @@ class SentenceRankingTask(FairseqTask):
}
)
label_path = f"{get_path('label', split)}.label"
label_path = '{}.label'.format(get_path('label', split))
if os.path.exists(label_path):
dataset.update(
target=RawLabelDataset([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment