# Neither spaCy nor NLTK have any methods for filtering punctuations def remove_punctuations(normalized_tokens): punctuations=['?',':','!',',','.',';','|','(',')','--'] for word in normalized_tokens: if word in punctuations: normalized_tokens.remove(word) return normalized_tokens