practical-machine-learning-with-python icon indicating copy to clipboard operation
practical-machine-learning-with-python copied to clipboard

Very minor bug in contractions with "ain't"

Open bbookman opened this issue 6 years ago • 0 comments

The word ain't produces "as not" because expand_contractions has the following code:

expanded_contraction = first_char + expanded_contraction[1:]

Ain't does not fit this general rule

bbookman avatar Dec 17 '19 22:12 bbookman