SuperAPI AI 工具集

hiascend-forum-analyzer

数据与分析

查看项目

更新于 10-15 17:19

技能介绍

用途:分析昇腾社区论坛中技术问题、故障排查与报错处理相关帖子,从Excel输入筛选并导出结构化问题数据。

输入与配置:源文件需包含 topicId、sectionName、topicClassName、title、createTime、topicLink 字段,格式类似 hiascend_topics_temp.xlsx。关键词与匹配设置存于 references/keywords.json,含 initial_filter(topicClassName 与 title 关键词)、deep_filter(问题类与技术领域关键词)和 filter_settings(case_sensitive、match_mode、min_content_length)。

工作流程:读取配置、用 pandas 解析Excel、按 topicClassName/title 初步筛选、通过接口获取帖子详情内容(GET,超时30秒,重试3次,默认并发5、间隔0.5秒,提取 result.content)、重组字段(content 置于 topicLink 前)、按 title 与 content 深度筛选、导出 hiascend_issues_{timestamp}.xlsx,含列宽自适应、内容换行和链接超链接格式。

用法:pip install pandas openpyxl requests urllib3;运行 python scripts/analyze_hiascend_issues.py <input_excel>,可选 --config、--filter-mode(1=问题类,2=问题+技术,默认1)、--concurrency、--output、--log-level。

限制:内容默认截断至10000字符;需网络访问与写入权限;配置错误、字段缺失或API失败需按提示排查,避免高频请求。