langtest.transform.grammar.Paraphrase#

class Paraphrase#

Bases: BaseGrammar

__init__()#

Methods

__init__()

async_run(sample_list, model, **kwargs)

run(sample_list, model, **kwargs)

Abstract method that implements the model testing for to check the grammer issues.

transform(sample_list[, prob])

Attributes

alias_name

supported_tasks

abstract async static run(sample_list: List[Sample], model: ModelAPI, **kwargs)#

Abstract method that implements the model testing for to check the grammer issues.