Skip to content

Commit 2f951e7

Browse files
committed
https://github.com/shibing624/pycorrector/issues/544
1 parent df68a36 commit 2f951e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycorrector/utils/error_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_errors(corrected_text, origin_text):
2424
for i in range(i1, i2):
2525
if origin_text[i] not in unk_tokens:
2626
errors.append((origin_text[i], '', i))
27-
new_corrected_text += origin_text[i]
27+
# 不拼接被删除的字符
2828
elif tag == 'insert':
2929
for j in range(j1, j2):
3030
if corrected_text[j] not in unk_tokens:

0 commit comments

Comments
 (0)