return max(candidates, key=language_models.Pwords_wrong)
def splits(text, L=20):
"""Return a list of all possible (first, rest) pairs, len(first)<=L.
"""
return max(candidates, key=language_models.Pwords_wrong)
def splits(text, L=20):
"""Return a list of all possible (first, rest) pairs, len(first)<=L.
"""