hpprc commited on
Commit
1cd9a65
·
1 Parent(s): 8c77eae
Files changed (1) hide show
  1. en-ja-align.py +1 -0
en-ja-align.py CHANGED
@@ -30,6 +30,7 @@ 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
  return text.strip()
34
 
35
 
 
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