Skip to content

Commit

Permalink
naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Dinan authored Jul 27, 2018
1 parent 028e9ab commit a663d2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions parlai/tasks/squad/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def setup_data(self, path):
yield (context + '\n' + question, answers), True


class OpenSquadTeacher(DialogTeacher):
class OpensquadTeacher(DialogTeacher):
"""This version of SQuAD inherits from the core Dialog Teacher, which just
requires it to define an iterator over its data `setup_data` in order to
inherit basic metrics, a default `act` function.
Expand Down Expand Up @@ -201,7 +201,7 @@ def __init__(self, opt, shared=None):
self.reset()


class SentenceIndexTeacher(IndexTeacher):
class SentenceTeacher(IndexTeacher):
"""Index teacher where the labels are the sentences the contain the true
answer.
"""
Expand Down Expand Up @@ -269,7 +269,7 @@ def get(self, episode_idx, entry_idx=None):
return action


class SentenceIndexEditTeacher(SentenceIndexTeacher):
class SentenceeditTeacher(SentenceIndexTeacher):
"""Index teacher where the labels are the sentences the contain the true
answer.
Expand Down Expand Up @@ -320,7 +320,7 @@ def get(self, episode_idx, entry_idx=None):
return action


class SentenceLabelsTeacher(IndexTeacher):
class SentencelabelsTeacher(IndexTeacher):
"""Teacher which contains the question as the text, the sentences as the
label candidates, and the label as the sentence containing the answer.
Expand Down Expand Up @@ -380,7 +380,7 @@ def get(self, episode_idx, entry_idx=None):
return action


class FulldocSentenceLabelsTeacher(FulldocTeacher):
class FulldocsentenceTeacher(FulldocTeacher):
"""Teacher which contains the question as the text, the sentences as the
label candidates, and the label as the sentence containing the answer.
Expand Down

0 comments on commit a663d2b

Please sign in to comment.