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

WikiToxic agents.py slight change #3678

Merged
merged 2 commits into from
Jun 7, 2021
Merged
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/dialogue_safety/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def __init__(self, opt, shared=None):

self.use_test_set = opt['use_test_set']
self.balance_data = opt['balance_data']
self.DATA_SOURCE = '<https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data>'

self.data_path = os.path.join(
opt['datapath'], 'dialogue_safety', 'wiki-toxic-comments'
Expand Down Expand Up @@ -226,8 +227,7 @@ def _get_data(self):
PathManager.mkdirs(self.data_path)
if not PathManager.exists(os.path.join(self.data_path, 'train.csv')):
raise RuntimeError(
f'\n\n{stars}\nThis data must be downloaded from '
'<https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data>. '
f'\n\n{stars}\nThis data must be downloaded from {self.DATA_SOURCE}'
'\nIt cannot be automatically downloaded, as one must agree to '
'the competition rules outlined on the website before '
'gaining access to the data.\n\n'
Expand Down