Closed zxl777 closed 8 months ago
You can use lock=True
for splitting by period. It prevent future merging or splitting at those same spots.
I've tried using the 'lock' parameter, but it's challenging to meet my requirements. I simply wish to split the occasional long sentences in the middle into two segments to fulfill my needs.
Are there any other recommended methods, such as applying special treatment only to specific segments?
You can use split_by_length()
and specifying long length .e.g. max_chars=50
.
Discussed in https://github.com/jianfch/stable-ts/discussions/274