cleanup: remove dead code and duplicate docs

- Remove session-ses_2f27.md (161KB raw session log)
- Remove 49 ROOT_* duplicate files across REFERENCE/
- Remove 14 duplicate files between REFERENCE/ root and history/
- Remove asr_legacy.rs (dead code, replaced by asr.rs)
- Remove src/core/worker/ (duplicate JobWorker)
- Remove src/core/layers/ (empty directory)
- Remove 4 .bak files in src/
- Remove 7 dead private methods in worker/processor.rs
- Remove backup directory from git tracking
This commit is contained in:
Warren
2026-05-04 01:31:21 +08:00
parent ee81e343ce
commit e75c4d6f07
3270 changed files with 35190 additions and 53367 deletions

View File

@@ -1,14 +0,0 @@
{
"//": "這是一個示例同義詞檔案,僅包含少量通用詞語,用於演示功能。",
"//": "請使用自創或已獲授權的同義詞資料,避免使用受版權保護的詞庫。",
"電腦": ["計算機", "微机"],
"視頻": ["影片", "錄像"],
"分析": ["解析", "剖析"],
"系統": ["體系", "架構"],
"用戶": ["使用者", "客戶"],
"數據": ["資料", "資訊"],
"網絡": ["網路", "互聯網"],
"檔案": ["文件", "文檔"],
"團體": ["組織", "團隊"],
"工作": ["任務", "作業"]
}

View File

@@ -1,14 +0,0 @@
{
"//": "這是一個示例同義詞檔案,僅包含少量通用詞語,用於演示功能。",
"//": "請使用自創或已獲授權的同義詞資料,避免使用受版權保護的詞庫。",
"電腦": ["計算機", "微机"],
"視頻": ["影片", "錄像"],
"分析": ["解析", "剖析"],
"系統": ["體系", "架構"],
"用戶": ["使用者", "客戶"],
"數據": ["資料", "資訊"],
"網絡": ["網路", "互聯網"],
"檔案": ["文件", "文檔"],
"團體": ["組織", "團隊"],
"工作": ["任務", "作業"]
}

View File

@@ -1,11 +0,0 @@
[
{
"id": "momentry-api-key-v1",
"name": "Momentry API Key",
"type": "httpHeaderAuth",
"data": {
"name": "x-api-key",
"value": "muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69"
}
}
]

View File

@@ -1,91 +0,0 @@
{
"id": "momentry-search-test",
"name": "Momentry Search API Test",
"nodes": [
{
"parameters": {
"method": "POST",
"url": "http://localhost:3002/api/v1/search",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "x-api-key",
"value": "muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "meeting"
},
{
"name": "limit",
"value": "3"
}
]
},
"options": {
"timeout": 30000
}
},
"id": "http-request",
"name": "Call Momentry API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [250, 300]
},
{
"parameters": {
"jsCode": "const data = $input.first().json;\nconst hits = data.hits || [];\nreturn {\n json: {\n query: data.query,\n count: data.count,\n results: hits.map(h => ({\n chunk_id: h.id,\n video_id: h.vid,\n text: (h.text || '').substring(0, 100),\n score: h.score,\n time: h.start_time?.toFixed(2)\n }))\n }\n};"
},
"id": "code",
"name": "Format Results",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [500, 300]
},
{
"parameters": {},
"id": "noop",
"name": "Done",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [750, 300]
}
],
"connections": {
"Call Momentry API": {
"main": [
[
{
"node": "Format Results",
"type": "main",
"index": 0
}
]
]
},
"Format Results": {
"main": [
[
{
"node": "Done",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"tags": []
}

View File

@@ -1,88 +0,0 @@
{
"id": "momentry-search-credential",
"name": "Momentry Search (Using Credentials)",
"nodes": [
{
"parameters": {
"method": "POST",
"url": "http://localhost:3002/api/v1/n8n/search",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"authentication": "headerAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "query",
"value": "meeting"
},
{
"name": "limit",
"value": "3"
}
]
},
"options": {
"timeout": 30000
}
},
"id": "http-request",
"name": "Call Momentry API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [250, 300]
},
{
"parameters": {
"jsCode": "const data = $input.first().json;\nconst hits = data.hits || [];\nreturn {\n json: {\n query: data.query,\n count: data.count,\n results: hits.map(h => ({\n chunk_id: h.id,\n video_id: h.vid,\n text: (h.text || '').substring(0, 100),\n score: h.score?.toFixed(3),\n time: h.start_time?.toFixed(2)\n }))\n }\n};"
},
"id": "code",
"name": "Format Results",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [500, 300]
},
{
"parameters": {},
"id": "noop",
"name": "Done",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [750, 300]
}
],
"connections": {
"Call Momentry API": {
"main": [
[
{
"node": "Format Results",
"type": "main",
"index": 0
}
]
]
},
"Format Results": {
"main": [
[
{
"node": "Done",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"tags": []
}

View File

@@ -1,118 +0,0 @@
{
"version": "1.0.0",
"description": "語言路由配置示例",
"language_routing": {
"default_language": "zh-CN",
"fallback_language": "en-US",
"detection_methods": [
{
"method": "content_analysis",
"priority": 1,
"description": "基於內容分析檢測語言"
},
{
"method": "user_preference",
"priority": 2,
"description": "基於用戶偏好設置"
},
{
"method": "system_locale",
"priority": 3,
"description": "基於系統區域設置"
}
],
"language_mappings": {
"zh-CN": {
"synonym_file": "synonyms_zh_CN.json",
"character_set": "UTF-8",
"locale": "zh_CN.UTF-8",
"description": "簡體中文同義詞庫"
},
"zh-TW": {
"synonym_file": "synonyms_zh_TW.json",
"character_set": "UTF-8",
"locale": "zh_TW.UTF-8",
"description": "繁體中文同義詞庫"
},
"en-US": {
"synonym_file": "synonyms_en_US.json",
"character_set": "UTF-8",
"locale": "en_US.UTF-8",
"description": "美式英文同義詞庫"
},
"en-GB": {
"synonym_file": "synonyms_en_GB.json",
"character_set": "UTF-8",
"locale": "en_GB.UTF-8",
"description": "英式英文同義詞庫"
},
"ja-JP": {
"synonym_file": "synonyms_ja_JP.json",
"character_set": "UTF-8",
"locale": "ja_JP.UTF-8",
"description": "日文同義詞庫"
},
"ko-KR": {
"synonym_file": "synonyms_ko_KR.json",
"character_set": "UTF-8",
"locale": "ko_KR.UTF-8",
"description": "韓文同義詞庫"
},
"fr-FR": {
"synonym_file": "synonyms_fr_FR.json",
"character_set": "UTF-8",
"locale": "fr_FR.UTF-8",
"description": "法文同義詞庫"
},
"de-DE": {
"synonym_file": "synonyms_de_DE.json",
"character_set": "UTF-8",
"locale": "de_DE.UTF-8",
"description": "德文同義詞庫"
},
"es-ES": {
"synonym_file": "synonyms_es_ES.json",
"character_set": "UTF-8",
"locale": "es_ES.UTF-8",
"description": "西班牙文同義詞庫"
},
"pt-BR": {
"synonym_file": "synonyms_pt_BR.json",
"character_set": "UTF-8",
"locale": "pt_BR.UTF-8",
"description": "巴西葡萄牙文同義詞庫"
}
},
"cross_language_fallback": {
"enabled": true,
"strategy": "hierarchical",
"fallback_order": [
"zh-CN",
"zh-TW",
"en-US",
"en-GB",
"ja-JP",
"ko-KR"
]
},
"unified_multilingual_support": {
"enabled": true,
"unified_file": "unified_multilingual_synonyms.json",
"auto_translate": false,
"translation_service": "none"
},
"performance_optimization": {
"cache_enabled": true,
"cache_ttl": 3600,
"preload_languages": ["zh-CN", "en-US"],
"lazy_loading": true
}
},
"metadata": {
"created_date": "2025-03-30",
"author": "Momentry Core Team",
"license": "CC BY-SA 4.0",
"source": "示例文件 - 僅供參考",
"notes": "語言路由配置示例,可根據實際需求調整"
}
}

View File

@@ -1,56 +0,0 @@
{
"version": "1.0.0",
"description": "跨語言同義詞庫示例 - 中英對照",
"language": "multilingual",
"synonyms": {
"電腦": ["計算機", "計算機", "電腦", "computer", "PC", "desktop", "laptop"],
"computer": ["電腦", "計算機", "計算機", "PC", "desktop", "laptop", "workstation"],
"手機": ["行動電話", "移動電話", "手機", "電話", "cellphone", "mobile phone", "smartphone"],
"smartphone": ["手機", "行動電話", "移動電話", "電話", "cellphone", "mobile phone", "智能手機"],
"軟體": ["軟件", "軟體", "程序", "應用", "software", "application", "app"],
"software": ["軟體", "軟件", "程序", "應用", "軟件", "應用程序", "應用軟件"],
"數據": ["資料", "數據", "信息", "資訊", "data", "information"],
"data": ["數據", "資料", "信息", "資訊", "數據資料", "資料數據"],
"網絡": ["網路", "網絡", "互聯網", "網際網路", "network", "internet", "web"],
"internet": ["網絡", "網路", "互聯網", "網際網路", "因特網", "萬維網", "web"],
"人工智能": ["人工智慧", "人工智能", "AI", "artificial intelligence"],
"AI": ["人工智能", "人工智慧", "AI技術", "人工智能技術", "artificial intelligence"],
"機器學習": ["機器學習", "機械學習", "ML", "machine learning"],
"machine learning": ["機器學習", "機械學習", "ML", "機器學習算法"],
"深度學習": ["深度學習", "深層學習", "DL", "deep learning"],
"deep learning": ["深度學習", "深層學習", "DL", "深度神經網絡"],
"雲計算": ["雲端計算", "雲計算", "雲服務", "cloud computing", "cloud services"],
"cloud computing": ["雲計算", "雲端計算", "雲服務", "雲計算服務", "雲端服務"],
"大數據": ["大數據", "巨量資料", "海量數據", "big data", "large-scale data"],
"big data": ["大數據", "巨量資料", "海量數據", "大規模數據", "海量資料"],
"物聯網": ["物聯網", "IoT", "Internet of Things", "萬物互聯"],
"IoT": ["物聯網", "物聯網技術", "Internet of Things", "智能物聯"],
"區塊鏈": ["區塊鏈", "區塊鏈技術", "blockchain", "分散式賬本"],
"blockchain": ["區塊鏈", "區塊鏈技術", "分散式賬本", "區塊鏈網絡"],
"加密貨幣": ["加密貨幣", "數字貨幣", "虛擬貨幣", "cryptocurrency", "digital currency"],
"cryptocurrency": ["加密貨幣", "數字貨幣", "虛擬貨幣", "加密資產", "數字資產"],
"元宇宙": ["元宇宙", "虛擬世界", "Metaverse", "虛擬宇宙"],
"Metaverse": ["元宇宙", "虛擬世界", "虛擬宇宙", "元宇宙空間"],
"虛擬現實": ["虛擬現實", "VR", "虛擬實境", "virtual reality"],
"VR": ["虛擬現實", "虛擬實境", "VR技術", "virtual reality"],
"增強現實": ["增強現實", "AR", "擴增實境", "augmented reality"],
"AR": ["增強現實", "擴增實境", "AR技術", "augmented reality"],
"混合現實": ["混合現實", "MR", "混合實境", "mixed reality"],
"MR": ["混合現實", "混合實境", "MR技術", "mixed reality"],
"數字孿生": ["數字孿生", "數位孿生", "digital twin", "虛擬孿生"],
"digital twin": ["數字孿生", "數位孿生", "虛擬孿生", "數字雙胞胎"],
"邊緣計算": ["邊緣計算", "邊緣運算", "edge computing", "邊緣處理"],
"edge computing": ["邊緣計算", "邊緣運算", "邊緣處理", "邊緣計算技術"],
"量子計算": ["量子計算", "量子運算", "quantum computing", "量子計算機"],
"quantum computing": ["量子計算", "量子運算", "量子計算技術", "量子計算機"]
},
"metadata": {
"created_date": "2025-03-30",
"author": "Momentry Core Team",
"license": "CC BY-SA 4.0",
"source": "示例文件 - 僅供參考",
"languages_supported": ["zh-CN", "zh-TW", "en-US"],
"character_encoding": "UTF-8",
"notes": "此為示例文件,實際使用時請替換為合法授權的同義詞資源"
}
}

View File

@@ -1,136 +0,0 @@
{
"version": "1.0.0",
"description": "統一格式多語系同義詞庫示例",
"format": "unified_multilingual",
"synonym_groups": [
{
"id": "group_001",
"primary_term": "電腦",
"language": "zh-CN",
"synonyms": ["計算機", "計算機", "電腦", "computer", "PC", "desktop", "laptop"],
"translations": {
"en-US": ["computer", "PC", "desktop", "laptop", "workstation"],
"zh-TW": ["電腦", "計算機", "計算機"],
"ja-JP": ["コンピュータ", "パソコン", "PC"],
"ko-KR": ["컴퓨터", "PC", "데스크톱"]
}
},
{
"id": "group_002",
"primary_term": "smartphone",
"language": "en-US",
"synonyms": ["cellphone", "mobile phone", "smartphone", "phone"],
"translations": {
"zh-CN": ["手機", "行動電話", "移動電話", "電話", "智能手機"],
"zh-TW": ["手機", "行動電話", "移動電話", "電話", "智慧型手機"],
"ja-JP": ["スマートフォン", "携帯電話", "スマホ"],
"ko-KR": ["스마트폰", "휴대전화", "핸드폰"]
}
},
{
"id": "group_003",
"primary_term": "ソフトウェア",
"language": "ja-JP",
"synonyms": ["ソフトウェア", "ソフト", "アプリケーション", "アプリ"],
"translations": {
"zh-CN": ["軟體", "軟件", "程序", "應用", "應用程序"],
"zh-TW": ["軟體", "軟件", "程式", "應用", "應用程式"],
"en-US": ["software", "application", "app", "program"],
"ko-KR": ["소프트웨어", "애플리케이션", "앱", "프로그램"]
}
},
{
"id": "group_004",
"primary_term": "소프트웨어",
"language": "ko-KR",
"synonyms": ["소프트웨어", "애플리케이션", "앱", "프로그램"],
"translations": {
"zh-CN": ["軟體", "軟件", "程序", "應用", "應用程序"],
"zh-TW": ["軟體", "軟件", "程式", "應用", "應用程式"],
"en-US": ["software", "application", "app", "program"],
"ja-JP": ["ソフトウェア", "ソフト", "アプリケーション", "アプリ"]
}
},
{
"id": "group_005",
"primary_term": "人工智能",
"language": "zh-CN",
"synonyms": ["人工智慧", "人工智能", "AI", "artificial intelligence"],
"translations": {
"en-US": ["artificial intelligence", "AI", "machine intelligence"],
"zh-TW": ["人工智慧", "人工智能", "AI"],
"ja-JP": ["人工知能", "AI", "人工知性"],
"ko-KR": ["인공지능", "AI", "인공 지능"]
}
},
{
"id": "group_006",
"primary_term": "artificial intelligence",
"language": "en-US",
"synonyms": ["AI", "artificial intelligence", "machine intelligence"],
"translations": {
"zh-CN": ["人工智能", "人工智慧", "AI"],
"zh-TW": ["人工智慧", "人工智能", "AI"],
"ja-JP": ["人工知能", "AI", "人工知性"],
"ko-KR": ["인공지능", "AI", "인공 지능"]
}
},
{
"id": "group_007",
"primary_term": "人工知能",
"language": "ja-JP",
"synonyms": ["人工知能", "AI", "人工知性"],
"translations": {
"zh-CN": ["人工智能", "人工智慧", "AI"],
"zh-TW": ["人工智慧", "人工智能", "AI"],
"en-US": ["artificial intelligence", "AI", "machine intelligence"],
"ko-KR": ["인공지능", "AI", "인공 지능"]
}
},
{
"id": "group_008",
"primary_term": "인공지능",
"language": "ko-KR",
"synonyms": ["인공지능", "AI", "인공 지능"],
"translations": {
"zh-CN": ["人工智能", "人工智慧", "AI"],
"zh-TW": ["人工智慧", "人工智能", "AI"],
"en-US": ["artificial intelligence", "AI", "machine intelligence"],
"ja-JP": ["人工知能", "AI", "人工知性"]
}
},
{
"id": "group_009",
"primary_term": "雲計算",
"language": "zh-CN",
"synonyms": ["雲端計算", "雲計算", "雲服務", "cloud computing"],
"translations": {
"en-US": ["cloud computing", "cloud services", "cloud technology"],
"zh-TW": ["雲端計算", "雲計算", "雲服務"],
"ja-JP": ["クラウドコンピューティング", "クラウドサービス", "クラウド"],
"ko-KR": ["클라우드 컴퓨팅", "클라우드 서비스", "클라우드"]
}
},
{
"id": "group_010",
"primary_term": "cloud computing",
"language": "en-US",
"synonyms": ["cloud computing", "cloud services", "cloud technology"],
"translations": {
"zh-CN": ["雲計算", "雲端計算", "雲服務"],
"zh-TW": ["雲端計算", "雲計算", "雲服務"],
"ja-JP": ["クラウドコンピューティング", "クラウドサービス", "クラウド"],
"ko-KR": ["클라우드 컴퓨팅", "클라우드 서비스", "클라우드"]
}
}
],
"metadata": {
"created_date": "2025-03-30",
"author": "Momentry Core Team",
"license": "CC BY-SA 4.0",
"source": "示例文件 - 僅供參考",
"languages_supported": ["zh-CN", "zh-TW", "en-US", "ja-JP", "ko-KR"],
"character_encoding": "UTF-8",
"notes": "統一格式多語系同義詞庫示例,包含中、英、日、韓四種語言"
}
}