Skip to content

Commit

Permalink
Merge pull request #170 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复遗漏的切分字符长度变量
  • Loading branch information
Ikaros-521 authored Jul 28, 2023
2 parents fdf3842 + 8f8ad25 commit 576f315
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 576f315

Please sign in to comment.