微信聊天分析及預測工具

👤 下次一定24 📦 v1.0.15 ⭐ 4.7 ⬇️ 9.4K 下載
📊 資料分析 免費

📖 技能介紹


name: wechat-analyzer description: > 微信聊天分析助手 v2.8.0 — 完全本地執行的隱私保護工具。 分析聊天記錄,推斷 MBTI 與大五人格,檢測情感趨勢,生成視覺化報告。 支援 jieba 精準分詞、否定識別、反諷檢測、風險預警、RAG 檢索增強預測、 多智慧體博弈模擬(MiroFish),完全本地化、零資料外傳。 version: 2.8.0 author: user tags: - wechat - chat-analysis - mbti - big-five - sentiment - report-generation - privacy-first - mirofish - conversation-prediction - rag - local-llm - multi-agent - jieba - negation-detection - inference - interpretation - intent-recognition - ner - friendly-errors - reproducible-prediction triggers: - "分析微信聊天記錄" - "聊天記錄分析" - "MBTI分析" - "生成聊天報告" - "微信記錄整理" - "對話預測" - "心理分析" - "情感分析" - "微信怎麼匯出聊天記錄" - "本地對話預測" - "群體智慧分析" - "RAG預測" - "微信分析v2" - "推演對話走向" - "解讀聊天內容" - "提取聊天意圖" - "我要聊天分析" - "看看我們聊了什麼" - "他是什麼意思" - "分析我們關係" - "這段對話有什麼問題" - "幫忙看看聊天" - "看看聊天記錄" - "幫我分析一下" - "性格分析" - "猜她是什麼性格" - "猜他是什麼性格" - "我們聊天有什麼風險" - "這段對話誰的問題" - "聽一下這段對話" - "我們什麼關係" - "感情走向" - "下一步該怎麼聊" - "TA 內心想法" - "TA 是怎麼想的" - "聊天靈感" - "回覆建議" - "她是不是生氣了" - "他最近怎麼了" - "怎麼回覆他好" - "求分析"


微信聊天分析助手 v2.8.0

完全本地執行、模組化架構、AI 增強的隱私保護工具

⚠️ 分析結果僅供參考,不是專業評估

MBTI / 大五 / 情感 / 風險 / 推演都是啟發式估計,準確率有限。 不能用於專業心理評估、職業/感情決策、臨床診斷。詳見 FAQ.md

🆕 v2.8.0 健壯性升級 + 零警告

  • 消除非法轉義core/utils.py 正則因引號截斷產生隱式字串拼接,\[ 成非法轉義(DeprecationWarning,3.12+ 將變 SyntaxError),改三引號 raw string
  • Python 3.15 相容calendar_manager._parse_date 無年份日期("08-20")顯式補參考年份,不再依賴 strptime 預設年份(3.15 起行為變更)
  • 7 處裸 except 收緊 — 按場景改為 ValueError / OSError / json.JSONDecodeError,不再吞 KeyboardInterrupt
  • 全覆蓋編譯煙囪測試 — 自動掃描全部 .py(編譯+警告升錯誤)+ 裸 except 防迴歸 + 版本一致性校驗
  • 測試 329 過 / Python 3.11 與 3.14 雙版本零警告

能力矩陣

能力 說明 入口
MBTI / 大五人格 關鍵詞規則推斷 + 維度差距置信度 + 穩定性評分 analyze-v2
情感分析 jieba 分詞 + 否定識別 + 反諷檢測 + Emoji 對映 analyze-v2
風險檢測 4 類風險 + 反諷排除 + 時序突發 + 三級分級 analyze-v2
對話預測 Rule + RAG + MiroFish 三層融合 predict-v2
時間感知 距最後訊息時間/週末/密集節奏調整回覆時機 predict-v2
推演 + 解讀 5 大推演(趨勢/行為/情感軌跡/風險演化/走向)+ 4 大解讀 analyze-v2
日曆事件 從聊天提取約會/截止/提醒/生日/付款/出行 calendar
定時任務 每日/周/月/季/年自動生成報告 schedule
報告生成 單檔案離線 HTML(內聯 SVG 圖表) --html
檔案匯入 txt/json/docx/pdf,編碼自動檢測 --input

使用說明

v2 分析命令

python scripts/main.py analyze-v2 --paste                          # 貼上分析
python scripts/main.py analyze-v2 --input 聊天記錄.txt               # 檔案分析(自動識別編碼)
python scripts/main.py analyze-v2 --input 聊天記錄.txt --html report.html   # 生成離線 HTML 報告
python scripts/main.py predict-v2 --paste                          # 三層融合對話預測
python scripts/main.py graph-stats                                 # MiroFish 本地圖譜統計

其他命令

python scripts/main.py demo                    # 一鍵體驗內建示例
python scripts/main.py doctor                  # 環境自檢(依賴/config/編碼)
python scripts/main.py calendar --list         # 日曆事件
python scripts/main.py schedule --list         # 定時任務
python scripts/main.py version                 # 檢視版本

v1.2.0 命令(向後相容)

analyze / report / schedule / serve / calendar 全部保留,行為不變。

隱私與配置

  • 100% 本地計算,零外部網路請求(首次下載 embedding 模型除外)
  • 執行時資料(資料庫等)預設存系統 tempdir,WECHAT_ANALYZER_DATA_DIR 環境變數可覆蓋
  • 可選能力:RAG(rag.enabled=false 關閉)/ MiroFish(mirofish.enabled=true 啟用)/ LLM(預設停用,隱私優先)
  • 上傳前 python clean.py --check 檢查殘留(退出碼 1=有殘留),python clean.py 一鍵清理

常見問題

Q: GBK 編碼讀取報錯? A: v2.1.0 起自動識別 utf-8-sig / utf-8 / gb18030,直接傳入即可。

Q: 大五人格全是 100%? A: 已修復歸一化,小樣本收縮到 50 附近,訊號充分時落在 15~85 區間。

Q: 首次執行很慢? A: RAG 首次需下載 embedding 模型(50-100MB),之後秒開。

Q: 環境出問題怎麼排查? A: python scripts/main.py doctor 逐項檢查並給修復建議。

Q: v2 和 v1.2.0 結果不一致? A: 正常,v2 引入 jieba 分詞、否定識別等,更準確。

依賴安裝

pip install -r requirements.txt          # 核心(必須:jieba/Flask/docx/pptx)
pip install -r requirements-rag.txt      # RAG(可選:sentence-transformers/chromadb)
python scripts/main_setup.py             # 一鍵配置

版本歷史

  • v2.8.0 零警告:非法轉義修復 + Python 3.15 日期相容 + 裸 except 收緊 + 編譯煙囪測試
  • v2.7.0 scheduler 建表修復 + 日曆/排程測試補全(272→302)
  • v2.6.0 上傳修復(.pyc/.db 二進位制治本,core/data_paths.py 統一路徑)

    發現更多技能外掛,請訪問7w4.net。

  • v2.5.0 五 bug 修復 + 友好錯誤全鏈路 + 版本號單一來源
  • v2.4.0 jieba 情感修復 + 測試補全(160→235)
  • v2.3.0 時間感知對話預測
  • v2.2.0 推演 + 資訊解讀(10 大子能力)
  • v2.1.0 本地圖譜 + 編碼檢測 + 單檔案 HTML 報告

完整功能說明見 README.md | 新手速查見 RUNBOOK.md | 故障排查見 TROUBLESHOOTING.md

🤖 AI 評測

這個工具質量不錯,功能很全,隱私保護做得好(完全本地執行)。分析 MBTI、情感、風險、對話預測都能覆蓋,介面友好、文件詳細,新手也能快速上手。美中不足的是,部分分析結果(如人格推斷)本質是啟發式估算,準確性有限,不能當真。此外首次使用要安裝不少依賴,略麻煩。總體適合對隱私敏感、想本地分析聊天記錄的使用者。

📊 多維度評分

適應性4.7
規範性4.7
有效性4.6
可靠性4.7
可信度4.8

📁 包含檔案 (145 個)

📄 CHANGELOG.md 27.2 KB
📄 FAQ.md 13.1 KB
📄 README.md 16.8 KB
📄 RUNBOOK.md 9 KB
📄 SKILL.md 7 KB
📄 analyzers/__init__.py 2.5 KB
📄 analyzers/bigfive_analyzer.py 6.7 KB
📄 analyzers/inference_analyzer.py 21.8 KB
📄 analyzers/interpretation_analyzer.py 15.1 KB
📄 analyzers/lexicon/degree_words.txt 1.1 KB
📄 analyzers/lexicon/emoji_dict.txt 3.9 KB
📄 analyzers/lexicon/hownet_negative.txt 7.7 KB
📄 analyzers/lexicon/hownet_positive.txt 7 KB
📄 analyzers/lexicon/jieba_dict/user_dict.txt 2.2 KB
📄 analyzers/lexicon/negation_words.txt 627 B
📄 analyzers/mbti_analyzer.py 11.7 KB
📄 analyzers/pattern_analyzer.py 5.1 KB
📄 analyzers/risk_analyzer.py 11.4 KB
📄 analyzers/scenario_analyzer.py 5.1 KB
📄 analyzers/sentiment_analyzer.py 13.6 KB
📄 clean.py 6.8 KB
📄 config.json 1.8 KB
📄 core/__init__.py 854 B
📄 core/analyzer_base.py 5.6 KB
📄 core/data_paths.py 1.5 KB
📄 core/message.py 4 KB
📄 core/predictor_base.py 2 KB
📄 core/result.py 3.1 KB
📄 core/timing.py 3.1 KB
📄 core/utils.py 9.2 KB
📄 core/version.py 361 B
📄 data/reports/v2_report_20260813_115314.html 10.3 KB
📄 friendly_errors.py 10 KB
📄 gitignore_rules.txt 760 B
📄 mirofish/__init__.py 512 B
📄 mirofish/core/__init__.py 151 B
📄 mirofish/core/zep_local.py 8.5 KB
📄 package.py 7.3 KB
📄 predictors/__init__.py 1.8 KB
📄 predictors/ensemble.py 13.3 KB
📄 predictors/mirofish_predictor.py 11 KB
📄 predictors/rag_predictor.py 12 KB
📄 predictors/rule_predictor.py 30.1 KB
📄 rag/__init__.py 506 B
📄 rag/embedder.py 3.6 KB
📄 rag/retriever.py 7.2 KB
📄 rag/vector_store.py 4.1 KB
📄 references/INDEX.md 6.6 KB
📄 requirements-rag.txt 215 B
📄 requirements-web.txt 239 B
📄 requirements.txt 1.1 KB
📄 run_tests.py 7.9 KB
📄 scripts/__init__.py 665 B
📄 scripts/archive_v1/calendar_manager.py 10.8 KB
📄 scripts/archive_v1/conversation_predictor.py 17.7 KB
📄 scripts/archive_v1/data_manager.py 8.5 KB
📄 scripts/archive_v1/file_importer.py 9.7 KB
📄 scripts/archive_v1/llm_analyzer.py 11.5 KB
📄 scripts/archive_v1/main.py 17.7 KB
📄 scripts/archive_v1/main_setup.py 9.8 KB
📄 scripts/archive_v1/report_generator.py 18.3 KB
📄 scripts/archive_v1/scheduler.py 5.8 KB
📄 scripts/archive_v1/text_analyzer.py 27.8 KB
📄 scripts/archive_v1/web_server.py 7.1 KB
📄 scripts/calendar_manager.py 11.4 KB
📄 scripts/conversation_predictor.py 17.7 KB
📄 scripts/data_manager.py 9.3 KB
📄 scripts/file_importer.py 32 KB
📄 scripts/llm_analyzer.py 11.5 KB
📄 scripts/main.py 45.2 KB
📄 scripts/main_setup.py 9.8 KB
📄 scripts/mirofish/README.md 1.1 KB
📄 scripts/mirofish/config.py 1.8 KB
📄 scripts/mirofish/requirements.txt 318 B
📄 scripts/mirofish/services/__init__.py 1.7 KB
📄 scripts/mirofish/services/graph_builder.py 17.8 KB
📄 scripts/mirofish/services/oasis_profile_generator.py 49.7 KB
📄 scripts/mirofish/services/ontology_generator.py 18.9 KB
📄 scripts/mirofish/services/report_agent.py 96.9 KB
📄 scripts/mirofish/services/simulation_config_generator.py 40 KB
📄 scripts/mirofish/services/simulation_ipc.py 12 KB
📄 scripts/mirofish/services/simulation_manager.py 19.8 KB
📄 scripts/mirofish/services/simulation_runner.py 67.6 KB
📄 scripts/mirofish/services/text_processor.py 1.7 KB
📄 scripts/mirofish/services/zep_entity_reader.py 14.9 KB
📄 scripts/mirofish/services/zep_graph_memory_updater.py 21.6 KB
📄 scripts/mirofish/services/zep_tools.py 64.7 KB
📄 scripts/mirofish/utils/__init__.py 265 B
📄 scripts/mirofish/utils/file_parser.py 5.5 KB
📄 scripts/mirofish/utils/llm_client.py 2.9 KB
📄 scripts/mirofish/utils/locale.py 1.9 KB
📄 scripts/mirofish/utils/logger.py 3.3 KB
📄 scripts/mirofish/utils/retry.py 7.3 KB
📄 scripts/mirofish/utils/zep_paging.py 4.3 KB
📄 scripts/report_generator.py 18.3 KB
📄 scripts/scheduler.py 6.8 KB
📄 scripts/text_analyzer.py 28.5 KB
📄 scripts/v2_report_generator.py 18.7 KB
📄 scripts/web_server.py 7.1 KB
📄 templates/how_to_export.html 4.7 KB
📄 templates/index.html 20.8 KB
📄 templates/report_template.html 9.5 KB
📄 test_sample_chat.txt 1.4 KB
📄 tests/__init__.py 16 B
📄 tests/fixtures/sample_chat.txt 1.4 KB
📄 tests/fixtures/sample_chat_rich.txt 3.5 KB
📄 tests/test_analyzers/__init__.py 29 B
📄 tests/test_analyzers/test_bigfive_analyzer.py 3.1 KB
📄 tests/test_analyzers/test_inference_analyzer.py 8.9 KB
📄 tests/test_analyzers/test_interpretation_analyzer.py 8.3 KB
📄 tests/test_analyzers/test_mbti_analyzer.py 2.8 KB
📄 tests/test_analyzers/test_pattern_analyzer.py 4.1 KB
📄 tests/test_analyzers/test_risk_analyzer.py 3.6 KB
📄 tests/test_analyzers/test_scenario_analyzer.py 2.1 KB
📄 tests/test_analyzers/test_sentiment_analyzer.py 6.8 KB
📄 tests/test_compile_smoke.py 2.8 KB
📄 tests/test_core/__init__.py 24 B
📄 tests/test_core/test_analyzer_registry.py 4.7 KB
📄 tests/test_core/test_message.py 5.2 KB
📄 tests/test_core/test_result.py 3.6 KB
📄 tests/test_core/test_timing.py 1.8 KB
📄 tests/test_core/test_utils.py 2.7 KB
📄 tests/test_friendly_errors.py 4.5 KB
📄 tests/test_mirofish/__init__.py 37 B
📄 tests/test_mirofish/test_zep_local.py 3.5 KB
📄 tests/test_predictors/__init__.py 30 B
📄 tests/test_predictors/test_ensemble.py 4.6 KB
📄 tests/test_predictors/test_mirofish_determinism.py 2.2 KB
📄 tests/test_predictors/test_mirofish_predictor.py 2.8 KB
📄 tests/test_predictors/test_rag_predictor.py 7.1 KB
📄 tests/test_predictors/test_rule_predictor.py 4.1 KB
📄 tests/test_predictors/test_rule_predictor_v22.py 7.9 KB
📄 tests/test_predictors/test_timing_predictions.py 2.4 KB
📄 tests/test_rag/__init__.py 23 B
📄 tests/test_rag/test_embedder.py 1.5 KB
📄 tests/test_rag/test_retriever.py 1.2 KB
📄 tests/test_rag/test_retriever_where.py 5.7 KB
📄 tests/test_rag/test_vector_store.py 4.8 KB
📄 tests/test_scripts/__init__.py 46 B
📄 tests/test_scripts/test_calendar_manager.py 5.4 KB
📄 tests/test_scripts/test_data_manager.py 5.4 KB
📄 tests/test_scripts/test_file_importer.py 12.2 KB
📄 tests/test_scripts/test_main_display.py 3.8 KB
📄 tests/test_scripts/test_scheduler.py 1.4 KB
📄 tests/test_scripts/test_v2_report_generator.py 5.8 KB