Scorers

class blaise.scores.NGramScorer(n: int, expected: dict[str, float] | str)

Bases: Scorer

Scores N-Grams using the Bhattacharyya distance

score(text: str) float
blaise.scores.as_scorer(scorer) Scorer