Signal

A regex-based signal pattern used in the scoring pipeline.

Usage

Source

Signal(
    *,
    pattern,
    weight=1,
    flags=0,
)

Signals are matched against transcript text via re.search. Each match contributes weight to the cumulative score. Use negative weights to suppress false positives.

Parameter Attributes

pattern: str
weight: int = 1
flags: int = 0

Example

Signal(pattern=r”retry”, weight=2, flags=re.IGNORECASE)