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

expand contractions is not working as expected

Open jonanem opened this issue 6 years ago • 1 comments

When there are more than one single quote(') such as "you'll've" , Expand contractions in text_normalizer.py is giving output as "you willve" but the expected output is "you will have"

jonanem avatar Mar 25 '19 09:03 jonanem

Yes sadly this is a known issue even with the contractions package on PyPI. The whole regex pattern framework used for this will need to be modified I am guessing. Will be taking a look at this some time in the future as I get some time.

dipanjanS avatar May 05 '19 20:05 dipanjanS