4 ms·
Unless the input is such garbage that asking the user is pointless (like a lot of web sources) and fixing manually is too time expensive. It becomes easier to
by tempaccount1234 2y ago
Unless the input is such garbage that asking the user is pointless (like a lot of web sources) and fixing manually is too time expensive.
It becomes easier to just use https://pypi.org/project/ftfy/ https://pypi.org/project/ftfy/ on the input.