chore
Browse files- en-ja-align.py +2 -1
en-ja-align.py
CHANGED
|
@@ -30,7 +30,8 @@ def preprocess(text: str):
|
|
| 30 |
text = re.sub(r"([\u3040-\u309F]+)", "", text)
|
| 31 |
text = re.sub(r" − (.+) − ", "――\\1――", text)
|
| 32 |
text = re.sub(r"_(.+)_", "\\1", text)
|
| 33 |
-
text = re.sub(r" ``$", "''", text)
|
|
|
|
| 34 |
return text.strip()
|
| 35 |
|
| 36 |
|
|
|
|
| 30 |
text = re.sub(r"([\u3040-\u309F]+)", "", text)
|
| 31 |
text = re.sub(r" − (.+) − ", "――\\1――", text)
|
| 32 |
text = re.sub(r"_(.+)_", "\\1", text)
|
| 33 |
+
text = re.sub(r" ``$", "''", text.strip())
|
| 34 |
+
text = re.sub(r"^――", "", text.strip())
|
| 35 |
return text.strip()
|
| 36 |
|
| 37 |
|