Skip to content

Compute confidence scores by char, word or line

By default, DAN returns an overall confidence score, which is the mean of character probabilities. We could add an option to return confidence scores averaged by line/word, or return the full list of character probabilities.

Ref: https://gitlab.com/teklia/atr/dan/-/blob/47434070572ac04ef84dd54c6e94437b2bcbefe0/dan/predict/prediction.py#L223