jfilter / clean-text

🧹 Python package for text cleaning
Other
953 stars 79 forks source link

Functon normalize_whitespace being applied regardless of conditions #13

Closed ogabrielluiz closed 4 years ago

ogabrielluiz commented 4 years ago

Hi! Your project is very useful!

https://github.com/jfilter/clean-text/blob/d32aa94ad20226aa3626aa000fb9454ec16c96ab/cleantext/clean.py#L86

I was wondering why this function is applied like this instead of having a condition for it to be applied.

Is fixing whitespaces absolutely required?

Thanks!

jfilter commented 4 years ago

Yes, good idea. ;)