会议纪要skill增加历史会议纪要比对

This commit is contained in:
闫旭隆
2026-01-19 13:49:00 +08:00
parent e0aff02e31
commit 97457b8124
28 changed files with 3022 additions and 2223 deletions

View File

@ -23,9 +23,11 @@ def replace_speakers(input_file, output_file=None):
content = f.read()
# 替换发言人(匹配行首的发言人格式)
# 格式: 发言人(时间戳): -> 发言人:
content = re.sub(r'^郝倩玉\(\d{2}:\d{2}:\d{2}\):', r'线下人员:', content, flags=re.MULTILINE)
content = re.sub(r'^\.\(\d{2}:\d{2}:\d{2}\):', r'江争达:', content, flags=re.MULTILINE)
# 格式: 发言人: 或 发言人(时间戳): -> 发言人:
# 时间戳是可选的
content = re.sub(r'^郝倩玉(\(\d{2}:\d{2}:\d{2}\))?:', r'线下人员:', content, flags=re.MULTILINE)
content = re.sub(r'^信通院云大所市场部-张媛媛(\(\d{2}:\d{2}:\d{2}\))?:', r'线下人员:', content, flags=re.MULTILINE)
content = re.sub(r'^\.(\(\d{2}:\d{2}:\d{2}\))?:', r'江争达:', content, flags=re.MULTILINE)
# 删除其他所有发言人后的时间戳
content = re.sub(r'^([^\n\(]+)\(\d{2}:\d{2}:\d{2}\):', r'\1:', content, flags=re.MULTILINE)