skip to navigation
skip to content

pyrecase 1.1.4

Recases input text according to a language model.

For a given input sentence, combinations of upper, lower, and title cased words are combined into a weighted trigram graph, the weight being the log probability of the trigram on a language model. The optimal casing is the graph path with the highest LM likelihood.