diff --git a/xiaoguo_news_processor.py b/xiaoguo_news_processor.py index e0393c5..8d361f3 100644 --- a/xiaoguo_news_processor.py +++ b/xiaoguo_news_processor.py @@ -97,7 +97,7 @@ def call_xiaoguo(articles): for a in articles: title = re.sub(r'\b\d{6}\b', '', a['title']).strip() title = re.sub(r'\s+', ' ', title) - content = (a.get('content') or '')[:200] + content = a.get('content') or '' # 给正文加标点分隔(akshare正文无标点,模型推理会卡) if content and not any(c in content for c in '。,!?;'): content = '。'.join([content[i:i+20] for i in range(0, len(content), 20)])