Ver Fonte

Optimize text splitting

Lengyue há 1 ano atrás
pai
commit
9f85e00327
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tools/llama/generate.py

+ 1 - 1
tools/llama/generate.py

@@ -420,7 +420,7 @@ def split_text(text, min_length):
     curr = ""
     for char in text:
         curr += char
-        if char not in [".", ",", "!", "?"]:
+        if char not in [".", "!", "?"]:
             continue
 
         if len(curr) >= min_length: