Skip to content

Commit

Permalink
修复遗漏的切分字符长度变量
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jul 28, 2023
1 parent a0e0fb3 commit 8f8ad25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def split_sentences(self, text):
# 2次切分长字符串
result2 = []
for string in result:
if len(string) > 30:
if len(string) > max_limit_len:
split_strings = re.split(r"[,,;;。!!]", string)
result2.extend(split_strings)
else:
Expand Down

0 comments on commit 8f8ad25

Please sign in to comment.