Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

update decode task data link and checksum #3749

Merged
merged 5 commits into from
Jun 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parlai/tasks/decode/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from parlai.utils.io import PathManager
from parlai.core.teachers import DialogTeacher

from .build import build, DECODE, DECODE_PREFIX, DECODE_VERSION
from .build import build, DECODE, DECODE_PREFIX, DECODE_FOLDER_VERSION


def _path(opt, test_type):
Expand All @@ -32,7 +32,7 @@ def _path(opt, test_type):
raise RuntimeError('Not valid datatype.')

data_directory = os.path.join(
opt['datapath'], DECODE, DECODE_PREFIX + DECODE_VERSION
opt['datapath'], DECODE, DECODE_PREFIX + DECODE_FOLDER_VERSION
)

data_path = os.path.join(data_directory, suffix + '.jsonl')
Expand Down
6 changes: 3 additions & 3 deletions parlai/tasks/decode/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

DECODE = 'decode'
DECODE_PREFIX = 'decode_'
DECODE_VERSION = 'v0.1'
DECODE_VERSION = 'v0.1.1'
DECODE_FOLDER_VERSION = 'v0.1'


meganung marked this conversation as resolved.
Show resolved Hide resolved
RESOURCES = [
DownloadableFile(
'https://sharenlpfile-01.s3.amazonaws.com/data/decode_v0.1.zip',
'http://parl.ai/downloads/decode/decode_v0.1.zip',
'decode_v0.1.zip',
# '0badc03c41813ae9748f259370ce655e576d736fea2d084dd6a786ac59f2f2a1',
'084aab98652a04ce4a78c1a63d91575f5ab416a0c474b962ca1f4508a56b7484',
True,
False,
Expand Down