Skip to content

Commit

Permalink
fixed sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Feng committed May 3, 2017
1 parent 86a19f7 commit 4e3dc1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parlai/mturk/tasks/model_evaluator/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, opt, shared=None):

def observe(self, observation):
self.observation = observation

# The rating given by turker
# Because we only have one turn in this conversation, we don't need to track turn_index
# print(self.observation)
Expand All @@ -46,9 +46,9 @@ def act(self):
ad = {}
# Show the dialog model's response to the context, and ask the turker to rate the response
ad['text'] = (
self.world.query['text'] + "\n\n" +
self.world.get_acts()[0]['text'] + "\n\n" +
"How would you rate the following response (from 0 to 10):\n\n" +
self.world.reply['text'])
self.world.get_acts()[1]['text'])

# TODO: deal with multi-turn dialogs, for now we will just deal
# with 1-turn dialogs in this task.
Expand Down

0 comments on commit 4e3dc1a

Please sign in to comment.