Skip to content

Commit 9ed7833

Browse files
committed
retrace
1 parent c0f31aa commit 9ed7833

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

batchalign/pipelines/cleanup/retrace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def process(self, doc, **kwargs):
2222
if i.type in [TokenType.REGULAR, TokenType.PUNCT, TokenType.FP]:
2323
content.append(i)
2424
# scan for n-gram retraces
25-
for n in range(1, len(content)):
25+
for n in range(1 if "yue" not in doc.langs and "zho" not in doc.langs else 2, len(content)):
2626
begin = 0
2727
while begin < len(content)-(n):
2828
# get the n gram info; we convert it to

batchalign/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
0.7.19-post.5
1+
0.7.19-post.6
22
May 23th, 2025
33
abbreviations

0 commit comments

Comments
 (0)