Skip to content

Commit 576f315

Browse files
authored
Merge pull request #170 from Ikaros-521/owner
修复遗漏的切分字符长度变量
2 parents fdf3842 + 8f8ad25 commit 576f315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def split_sentences(self, text):
252252
# 2次切分长字符串
253253
result2 = []
254254
for string in result:
255-
if len(string) > 30:
255+
if len(string) > max_limit_len:
256256
split_strings = re.split(r"[,,;;。!!]", string)
257257
result2.extend(split_strings)
258258
else:

0 commit comments

Comments
 (0)