dotfiles/.config/Code/User/History/-4c5aef8e/mvAc.py

5 lines
388 B
Python
Raw Normal View History

2024-09-09 16:59:28 +05:00
stop_words = ("a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "is", "it", "of", "on", "or", "so", "that", "the", "to", "with")
punctuation_marks = (".", ",", "?", "!", ":", ";", "'", "\"", "''", "(", ")", "[", "]", "{", "}", "-", "", "...", "/", "\\", "&", "*", "@", "#", "_", "~", "|", "<", ">", "=", "+")
def removePunctuationMarks(text: str) -> str: