m3hrdadfi's picture
Hello gpt2-qa
f474d6a
raw
history blame contribute delete
430 Bytes
import re
strange_double_quotes = [
"«",
"‹",
"»",
"›",
"„",
"“",
"‟",
"”",
"❝",
"❞",
"❮",
"❯",
"〝",
"〞",
"〟",
""",
]
strange_single_quotes = ["‘", "‛", "’", "❛", "❜", "`", "´", "‘", "’"]
DOUBLE_QUOTE_REGEX = re.compile("|".join(strange_double_quotes))
SINGLE_QUOTE_REGEX = re.compile("|".join(strange_single_quotes))