Awsl1111ddd commited on
Commit
df29ae3
·
verified ·
1 Parent(s): fa3bfd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ try: nltk.data.find('tokenizers/punkt')
49
  except LookupError:
50
  logging.info("NLTK 'punkt' tokenizer not found. Downloading..."); nltk.download('punkt', quiet=True); logging.info("'punkt' downloaded successfully.")
51
 
52
- def split_by_punctuation(text: str, max_len: int = 150):
53
  # (此函数不变)
54
  fragments = re.split(r'([,.:;!?。,、;:!?.…【】])', text); sentences = []
55
  temp_frag = ""
 
49
  except LookupError:
50
  logging.info("NLTK 'punkt' tokenizer not found. Downloading..."); nltk.download('punkt', quiet=True); logging.info("'punkt' downloaded successfully.")
51
 
52
+ def split_by_punctuation(text: str, max_len: int = 30):
53
  # (此函数不变)
54
  fragments = re.split(r'([,.:;!?。,、;:!?.…【】])', text); sentences = []
55
  temp_frag = ""