(text)
| 81 | """Lower text and remove punctuation, articles and extra whitespace.""" |
| 82 | |
| 83 | def remove_articles(text): |
| 84 | regex = re.compile(r"\b(a|an|the)\b", re.UNICODE) |
| 85 | return re.sub(regex, " ", text) |
| 86 | |
| 87 | def white_space_fix(text): |
| 88 | return " ".join(text.split()) |
no outgoing calls
no test coverage detected
searching dependent graphs…