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
| import streamlit as st | |
| import pandas as pd | |
| import re | |
| from collections import Counter | |
| import altair as alt | |
| # ========================================== | |
| # 1. 核心处理模块 (后端逻辑) | |
| # ========================================== |
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
| import pandas as pd | |
| import re | |
| from collections import Counter | |
| class GameCommentAnalyzer: | |
| def __init__(self): | |
| # 2. 分类 (Classification) - 定义核心关键词库 | |
| # 在实际生产中,这里会接入 LLM 进行语义判断,MVP阶段我们用精准关键词匹配 | |
| self.keywords = { |