chore
Browse files- en-ja-align.py +1 -0
en-ja-align.py
CHANGED
@@ -26,6 +26,7 @@ _DOWNLOAD_URL = (
|
|
26 |
|
27 |
def preprocess(text: str):
|
28 |
text = re.sub(r"<注[0-9]+>", "", text.strip())
|
|
|
29 |
text = re.sub(r"[#.*?]", "", text)
|
30 |
text = re.sub(r"([\u3040-\u309F]+)", "", text)
|
31 |
text = re.sub(r" − (.+) − ", "――\\1――", text)
|
|
|
26 |
|
27 |
def preprocess(text: str):
|
28 |
text = re.sub(r"<注[0-9]+>", "", text.strip())
|
29 |
+
text = re.sub(r"《.*?》", "", text)
|
30 |
text = re.sub(r"[#.*?]", "", text)
|
31 |
text = re.sub(r"([\u3040-\u309F]+)", "", text)
|
32 |
text = re.sub(r" − (.+) − ", "――\\1――", text)
|