Basic text cleaning.
(text)
| 108 | |
| 109 | |
| 110 | def basic_clean(text): |
| 111 | """Basic text cleaning.""" |
| 112 | text = ftfy.fix_text(text) |
| 113 | text = html.unescape(html.unescape(text)) |
| 114 | return text.strip() |
| 115 | |
| 116 | |
| 117 | def whitespace_clean(text): |
no outgoing calls
no test coverage detected