优化 字幕清洗方案

This commit is contained in:
小肥羊 2026-01-21 11:33:38 +08:00
parent aecfa4ac0d
commit f8a758ff40
2 changed files with 26 additions and 31 deletions

View File

@ -325,37 +325,32 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
var resFormat = """[{"t":时间(number),"r"字幕(string)}]"""; var resFormat = """[{"t":时间(number),"r"字幕(string)}]""";
var postMessages = var postMessages =
$$""" $$"""
# Role
{{subject}}{{sections}}STT稿 {{subject}}{{sections}}STTJSON
# Input & Output Protocol
JSON JSON `[{"t": number, "r": string}]`
1. {{subject}},{{sections}} * `t` (Time):
* `r` (Result):
使 # Processing Rules ()
2. 1. ()
"" N N
3. 使 i `t` i `t`
使
4. / LaTeX JSON LaTeX $\\\\frac{a}{b}$使$"。
JSON {{cStrArr.Count()}}
JSON JSON ```json Markdown
{{nowCaptionStr}}
1. JSON {{cStrArr.Count()}}
2. N N
3.
4. 使 "",
5. JSON JSON Markdown
2. ()
t:
r:
t:t
r: 3.
`r` `""`
LaTeX / LaTeX ( `$\\frac{a}{b}$`)JSON (`\\\\`)
# Task Data
( {{cStrArr.Count()}} ):
{{nowCaptionStr}}
# Action
JSON
"""; """;
List<SenseVoiceInput>? resData = null; List<SenseVoiceInput>? resData = null;
for (int i = 0; i < 6; i++) for (int i = 0; i < 6; i++)

View File

@ -39,7 +39,7 @@ namespace VideoAnalysisCore.Controllers
private readonly Repository<NodePackageInfo> nodePackageInfoDB; private readonly Repository<NodePackageInfo> nodePackageInfoDB;
private readonly Repository<VideoQuestion> videoQuestionDB; private readonly Repository<VideoQuestion> videoQuestionDB;
private readonly Repository<VideoQuestionKonw> videoQuestionKonwDB; private readonly Repository<VideoQuestionKonw> videoQuestionKonwDB;
private readonly RedisManager redisManager; private readonly RedisManager redisManager;
public LJZK_Controller(IMapper mp, Repository<NodeSubscription> nodesubscriptionDB, public LJZK_Controller(IMapper mp, Repository<NodeSubscription> nodesubscriptionDB,
Repository<VideoTask> videoTaskDB = null, Repository<VideoKonwPoint> videoKonwPointDB = null Repository<VideoTask> videoTaskDB = null, Repository<VideoKonwPoint> videoKonwPointDB = null