-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Wizard of Wikipedia, knowledge source page title. #3845
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thanks for including this!
'--conversation-history-length', | ||
type=int, | ||
default=0, | ||
help='Number of previous utterances to keep in context, 0 (default) includes all', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make the default -1? and have that map to including all? making 0 mean includes all doesn't seem right (as one could argue this should include... none)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed default to -1
, and added something to change any non-positive value to that.
type='bool', | ||
default=False, | ||
help=( | ||
'Whether to skip the example if no passage was selected. If `false` ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if this teacher would be more useful with this flag default to True
, since we really want to train a model that can generate titles (not just generate TOKEN_NOCHOSEN
). Anyway that's up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, that might make more sense.
Patch description
Added
WikiPageTitleTeacher
to the Wizard of Internet task. It generates the title of the Wikipedia page of the passage that Wizard selected as their source of knowledge, orno_passages_used
if there was no selection.Testing steps
TestWikiPageTitleTeacher
to teacher tests.