Update util.py解决返回元组报错 (#103)

解决返回元组报错
This commit is contained in:
linqingping 2025-02-23 16:45:20 +08:00 committed by GitHub
parent 2d01812f8d
commit d62f0375ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ def remove_punctuation_and_length(text):
char not in full_width_punctuations and char not in half_width_punctuations and char not in space and char not in full_width_space])
if result == "Yeah":
return 0
return 0, result
return len(result), result