Transformations API Reference

Transformation

class textattack.transformations.Transformation[source]

An abstract class for transforming a sequence of text to produce a potential adversarial example.

Composite Transformation

class textattack.transformations.CompositeTransformation(transformations)[source]

A transformation which applies each of a list of transformations, returning a set of all optoins.

Parameters

transformations – The list of Transformation to apply.