概率更改

pull/937/head
Bakadax 2025-05-15 19:42:50 +08:00
parent 49a1de4459
commit 7911e71371
1 changed files with 6 additions and 3 deletions

View File

@ -366,9 +366,12 @@ def split_into_sentences_w_remove_punctuation(text: str) -> list[str]:
if not preliminary_final_sentences:
return []
if len_text < 12: split_strength = 0.2
elif len_text < 32: split_strength = 0.5
else: split_strength = 0.7
if len_text < 12:
split_strength = 0.5
elif len_text < 32:
split_strength = 0.7
else:
split_strength = 0.9
merge_probability = 1.0 - split_strength
if merge_probability == 1.0 and len(preliminary_final_sentences) > 1: