We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df68a36 commit 2f951e7Copy full SHA for 2f951e7
pycorrector/utils/error_utils.py
@@ -24,7 +24,7 @@ def get_errors(corrected_text, origin_text):
24
for i in range(i1, i2):
25
if origin_text[i] not in unk_tokens:
26
errors.append((origin_text[i], '', i))
27
- new_corrected_text += origin_text[i]
+ # 不拼接被删除的字符
28
elif tag == 'insert':
29
for j in range(j1, j2):
30
if corrected_text[j] not in unk_tokens:
0 commit comments