feat(lyrics): 优化歌词匹配准确性#81
Open
laoshuikaixue wants to merge 2 commits into
Open
Conversation
laoshuikaixue
commented
Jul 11, 2026
Contributor
- 引入歌词一致性校验算法,支持跨平台歌词比对验证
- 实现模糊匹配缓存确认机制,避免错误匹配重复发生
- 添加歌词搜索排除列表功能,支持多轮重试获取更准确结果
- 集成参考歌词比对逻辑,在线歌词加载时进行质量评估
- 更新IPC接口支持歌词匹配查询参数传递与结果确认
- 扩展歌词匹配类型定义,增加候选数据与校验键值字段
- 重构各大平台歌词搜索逻辑,统一支持选项参数传递
- 增强歌词加载服务,支持基准歌词参考与智能选择
- 添加歌词匹配质量测试用例,确保算法准确性
- 引入歌词一致性校验算法,支持跨平台歌词比对验证 - 实现模糊匹配缓存确认机制,避免错误匹配重复发生 - 添加歌词搜索排除列表功能,支持多轮重试获取更准确结果 - 集成参考歌词比对逻辑,在线歌词加载时进行质量评估 - 更新IPC接口支持歌词匹配查询参数传递与结果确认 - 扩展歌词匹配类型定义,增加候选数据与校验键值字段 - 重构各大平台歌词搜索逻辑,统一支持选项参数传递 - 增强歌词加载服务,支持基准歌词参考与智能选择 - 添加歌词匹配质量测试用例,确保算法准确性
Contributor
Author
|
修复 https://music.163.com/#/song?id=3402223474 匹配到的QRC是其他版本歌词的问题 |
- 添加 MIN_LINE_SIMILARITY 常量用于控制最小行相似度阈值 - 修复 textSimilarity 函数中字符串长度比较逻辑,确保较长字符串作为基准 - 添加 spanLength 辅助函数计算歌词跨度长度 - 优化 joinSpan 函数实现,提高单行和双行连接性能 - 在歌词对齐算法中增加长度比例检查,过滤长度差异过大的候选匹配 - 将匹配相似度阈值替换为统一常量 MIN_LINE_SIMILARITY - 简化 SideBar.vue 中路由跳转代码格式 - 为歌词工具函数添加特殊版本关键字测试用例 - 修复 stripVersionMarkers 函数,去除版本标记后保留原始文本当结果为空时
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.