优化 字幕清洗方案

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 postMessages =
$$"""
{{subject}}{{sections}}STT稿
JSON
1. {{subject}},{{sections}}
使
2.
""
3. 使
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
# Role
{{subject}}{{sections}}STTJSON
# Input & Output Protocol
JSON `[{"t": number, "r": string}]`
* `t` (Time):
* `r` (Result):
# Processing Rules ()
1. ()
N N
i `t` i `t`
使
t:
r:
t:t
r:
2. ()
3.
`r` `""`
LaTeX / LaTeX ( `$\\frac{a}{b}$`)JSON (`\\\\`)
# Task Data
( {{cStrArr.Count()}} ):
{{nowCaptionStr}}
# Action
JSON
""";
List<SenseVoiceInput>? resData = null;
for (int i = 0; i < 6; i++)

View File

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