textflint.generation_layer.transformation.MRC.perturb_answer

Perturb Answer by altering the sentence that contains answer

class textflint.generation_layer.transformation.MRC.perturb_answer.PerturbAnswer[source]

Bases: textflint.generation_layer.transformation.transformation.Transformation

Transform the sentence containing answer with AlterSentence transformation.

Example:

origin sentence: Denver Broncos defeated the National Football
    Conference champion Carolina Panthers 24–10 to earn their
    third Super Bowl title.
transformed sentence: Denver Broncos defeated the National Football
    Conference champ Carolina Panthers 24–10 to earn
    their 3rd Super Bowl rubric.