mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
fix compile error
This commit is contained in:
parent
d92d3f194d
commit
b41cb0e2ee
@ -9,6 +9,11 @@
|
||||
3. server/husky -> deps/husky/
|
||||
4. test/unittest/gtest -> deps/gtest
|
||||
|
||||
依赖库升级:
|
||||
|
||||
1. [limonp] to version v0.5.1
|
||||
2. [husky] to version v0.2.0
|
||||
|
||||
## v4.2.1
|
||||
|
||||
1. Upgrade [limonp] to version v0.4.1, [husky] to version v0.2.0
|
||||
|
@ -4,7 +4,6 @@
|
||||
port=11200
|
||||
|
||||
thread_number=4
|
||||
queue_max_size=4096
|
||||
|
||||
#dict path
|
||||
dict_path=/usr/local/cppjieba/dict/jieba.dict.utf8
|
||||
|
@ -4,7 +4,6 @@
|
||||
port=11200
|
||||
|
||||
thread_number=4
|
||||
queue_max_size=4096
|
||||
|
||||
#dict path
|
||||
dict_path=../dict/jieba.dict.utf8
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <string.h>
|
||||
#include "limonp/Config.hpp"
|
||||
#include "husky/thread_pool_server.h"
|
||||
#include "Jieba.hpp"
|
||||
#include "cppjieba/Jieba.hpp"
|
||||
|
||||
using namespace husky;
|
||||
using namespace cppjieba;
|
||||
@ -76,7 +76,6 @@ bool Run(int argc, char** argv) {
|
||||
}
|
||||
int port = conf.Get("port", 1339);
|
||||
int threadNumber = conf.Get("thread_number", 4);
|
||||
int queueMaxSize = conf.Get("queue_max_size", 1024);
|
||||
string dictPath = conf.Get("dict_path", "");
|
||||
string modelPath = conf.Get("model_path", "");
|
||||
string userDictPath = conf.Get("user_dict_path", "");
|
||||
@ -88,7 +87,7 @@ bool Run(int argc, char** argv) {
|
||||
userDictPath);
|
||||
|
||||
ReqHandler reqHandler(jieba);
|
||||
ThreadPoolServer server(threadNumber, queueMaxSize, port, reqHandler);
|
||||
ThreadPoolServer server(threadNumber, port, reqHandler);
|
||||
return server.Start();
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "Jieba.hpp"
|
||||
#include "cppjieba/Jieba.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user