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

Fixed bug on building fb data #171

Merged
merged 2 commits into from
Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/qacnn/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ def _process(fname, fout):
# main article
s = '1 ' + lines[2]
# add question
s = s + lines[4]
s = s + ' ' + lines[4]
# add answer
s = s + '\t' + lines[6]
# add candidates (and strip them of the real names)
for i in range(8, len(lines)):
lines[i] = lines[i].split(':')[0]
s = s + '\t\t' + '|'.join(lines[8:-1])
s = s + '\t\t' + '|'.join(lines[8:])
fout.write(s + '\n\n')


Expand Down
4 changes: 2 additions & 2 deletions parlai/tasks/qadailymail/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ def _process(fname, fout):
# main article
s = '1 ' + lines[2]
# add question
s = s + lines[4]
s = s + ' ' + lines[4]
# add answer
s = s + '\t' + lines[6]
# add candidates (and strip them of the real names)
for i in range(8, len(lines)):
lines[i] = lines[i].split(':')[0]
s = s + '\t\t' + '|'.join(lines[8:-1])
s = s + '\t\t' + '|'.join(lines[8:])
fout.write(s + '\n\n')


Expand Down