Explorar el Código

Optimize text splitting

Lengyue hace 1 año
padre
commit
9f85e00327
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: