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

Disentangled checked_sentence_as_label. #4000

Merged
merged 6 commits into from
Sep 9, 2021
Merged

Disentangled checked_sentence_as_label. #4000

merged 6 commits into from
Sep 9, 2021

Conversation

leox1v
Copy link
Contributor

@leox1v leox1v commented Sep 9, 2021

Before it also added the label to the input. Now we have two separate mutators for this behavior: checked_sentence_as_label, add_label_to_input.

Copy link
Contributor

@jaseweston jaseweston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok that makes sense but then i guess it would be better to be consistent with the wizint ones i made as well, and the new lm one ... bit of a moving target rn (as i'm trying to run an experiment)! can you update and change the wizint ones and the lm too if you want to do this?

@leox1v
Copy link
Contributor Author

leox1v commented Sep 9, 2021

I fixed the mutators to not overwrite the original label and hence not copy the modified label to the next inputs. I also unified the mutators across WizWiki and WizInt.

The language modeling task can now be achieved by using the mutators add_label_to_input_lm and checked_sentence_as_label together, e.g.:

parlai display_data -t wizard_of_internet -n 100 -dt valid --mutators flatten,add_label_to_input_lm,checked_sentence_as_label

@leox1v leox1v merged commit 034e3e4 into main Sep 9, 2021
@leox1v leox1v deleted the wizwiki_mutators branch September 9, 2021 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants