Skip to content

textual_entailment_suite

allennlp.confidence_checks.task_checklists.textual_entailment_suite

[SOURCE]


TextualEntailmentSuite

@TaskSuite.register("textual-entailment")
class TextualEntailmentSuite(TaskSuite):
 | def __init__(
 |     self,
 |     suite: Optional[TestSuite] = None,
 |     entails: int = 0,
 |     contradicts: int = 1,
 |     neutral: int = 2,
 |     premise: str = "premise",
 |     hypothesis: str = "hypothesis",
 |     probs_key: str = "probs",
 |     **kwargs
 | )

contractions

class TextualEntailmentSuite(TaskSuite):
 | ...
 | @classmethod
 | def contractions(cls)

typos

class TextualEntailmentSuite(TaskSuite):
 | ...
 | @classmethod
 | def typos(cls)

punctuation

class TextualEntailmentSuite(TaskSuite):
 | ...
 | @classmethod
 | def punctuation(cls)