(s)
| 45 | """Lower text and remove punctuation, articles and extra whitespace.""" |
| 46 | |
| 47 | def remove_articles(s): |
| 48 | return re.sub(r'\b(a|an|the)\b', ' ', s) |
| 49 | |
| 50 | def replace_punctuation(s): |
| 51 | to_replace = set(string.punctuation) |
no outgoing calls
no test coverage detected
searching dependent graphs…