This commit is contained in:
2026-04-09 00:59:11 +08:00
parent 7406cbf952
commit 7b544c27b3
+6 -6
View File
@@ -19,12 +19,12 @@ import (
"syscall" // 系统调用(SIGTERM "syscall" // 系统调用(SIGTERM
"sese-engine/analyzer" // 文本分析和关键词提取 "sese-engine/analyzer" // 文本分析和关键词提取
"sese-engine/backlink" // 反向链接(繁荣值)计算 "sese-engine/backlink" // 反向链接(繁荣值)计算
"sese-engine/config" // 全局配置 "sese-engine/config" // 全局配置
"sese-engine/crawler" // BFS 爬虫 "sese-engine/crawler" // BFS 爬虫
"sese-engine/info" // info 服务(繁荣表、调整表、屏蔽词) "sese-engine/info" // info 服务(繁荣表、调整表、屏蔽词)
"sese-engine/search" // 搜索服务器(内嵌收获服务) "sese-engine/search" // 搜索服务器(内嵌收获服务)
"sese-engine/storage" // 持久化存储 "sese-engine/storage" // 持久化存储
) )
// initConfig 检查并初始化配置文件 // initConfig 检查并初始化配置文件
@@ -127,7 +127,7 @@ func main() {
// --entryBFS 爬取的起始 URL,默认使用 config.EntryURL()(维基百科中文首页) // --entryBFS 爬取的起始 URL,默认使用 config.EntryURL()(维基百科中文首页)
entryURL := flag.String("entry", config.EntryURL(), "BFS crawl entry URL") entryURL := flag.String("entry", config.EntryURL(), "BFS crawl entry URL")
// --stopwords:屏蔽词 JSON 文件路径 // --stopwords:屏蔽词 JSON 文件路径
stopWords := flag.String("stopwords", "../data/标点符号.json", "path to stop-words JSON") stopWords := flag.String("stopwords", "/savedata/标点符号.json", "path to stop-words JSON")
flag.Parse() flag.Parse()
// 设置日志格式:时间戳 + 短文件名 // 设置日志格式:时间戳 + 短文件名