sentiment.FrustrationShortCircuit

Pre-empts inference with score when a user message matches groups.

Usage

Source

sentiment.FrustrationShortCircuit(
    groups,
    score=1,
    ignore_case=True,
)

Parameter Attributes

groups: tuple[tuple[str, str], …]
score: int = 1
ignore_case: bool = True