├── .gitignore ├── .travis.yml ├── CMakeLists.txt ├── ChangeLog.md ├── README.md ├── conf ├── CMakeLists.txt ├── server.conf └── server_example.conf ├── deps ├── cppjieba │ ├── DictTrie.hpp │ ├── FullSegment.hpp │ ├── HMMModel.hpp │ ├── HMMSegment.hpp │ ├── Jieba.hpp │ ├── KeywordExtractor.hpp │ ├── LevelSegment.hpp │ ├── MPSegment.hpp │ ├── MixSegment.hpp │ ├── PosTagger.hpp │ ├── PreFilter.hpp │ ├── QuerySegment.hpp │ ├── SegmentBase.hpp │ ├── TransCode.hpp │ └── Trie.hpp ├── husky │ ├── http_req_info.h │ ├── irequest_handler.h │ ├── net_util.h │ └── thread_pool_server.h └── limonp │ ├── ArgvContext.hpp │ ├── BlockingQueue.hpp │ ├── BoundedBlockingQueue.hpp │ ├── BoundedQueue.hpp │ ├── Closure.hpp │ ├── Colors.hpp │ ├── Condition.hpp │ ├── Config.hpp │ ├── FileLock.hpp │ ├── LocalVector.hpp │ ├── Logging.hpp │ ├── Md5.hpp │ ├── MutexLock.hpp │ ├── NonCopyable.hpp │ ├── StdExtension.hpp │ ├── StringUtil.hpp │ ├── Thread.hpp │ └── ThreadPool.hpp ├── dict ├── CMakeLists.txt ├── README.md ├── hmm_model.utf8 ├── idf.utf8 ├── jieba.dict.utf8 ├── pos_dict │ ├── char_state_tab.utf8 │ ├── prob_emit.utf8 │ ├── prob_start.utf8 │ └── prob_trans.utf8 ├── stop_words.utf8 └── user.dict.utf8 ├── script ├── CMakeLists.txt ├── cjserver.start └── cjserver.stop ├── src ├── CMakeLists.txt └── server.cpp └── test ├── CMakeLists.txt ├── servertest ├── go_load_test.sh ├── load_test.py └── run_curl.sh └── testdata ├── curl.res ├── jieba.dict.0.1.utf8 ├── jieba.dict.0.utf8 ├── jieba.dict.1.utf8 ├── jieba.dict.2.utf8 ├── load_test.urls ├── review.100 ├── review.100.res ├── server.conf ├── testlines.gbk ├── testlines.utf8 ├── userdict.2.utf8 ├── userdict.english ├── userdict.utf8 └── weicheng.utf8 /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/.travis.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/ChangeLog.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/README.md -------------------------------------------------------------------------------- /conf/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | INSTALL(FILES server.conf DESTINATION conf) 2 | -------------------------------------------------------------------------------- /conf/server.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/conf/server.conf -------------------------------------------------------------------------------- /conf/server_example.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/conf/server_example.conf -------------------------------------------------------------------------------- /deps/cppjieba/DictTrie.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/DictTrie.hpp -------------------------------------------------------------------------------- /deps/cppjieba/FullSegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/FullSegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/HMMModel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/HMMModel.hpp -------------------------------------------------------------------------------- /deps/cppjieba/HMMSegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/HMMSegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/Jieba.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/Jieba.hpp -------------------------------------------------------------------------------- /deps/cppjieba/KeywordExtractor.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/KeywordExtractor.hpp -------------------------------------------------------------------------------- /deps/cppjieba/LevelSegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/LevelSegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/MPSegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/MPSegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/MixSegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/MixSegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/PosTagger.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/PosTagger.hpp -------------------------------------------------------------------------------- /deps/cppjieba/PreFilter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/PreFilter.hpp -------------------------------------------------------------------------------- /deps/cppjieba/QuerySegment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/QuerySegment.hpp -------------------------------------------------------------------------------- /deps/cppjieba/SegmentBase.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/SegmentBase.hpp -------------------------------------------------------------------------------- /deps/cppjieba/TransCode.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/TransCode.hpp -------------------------------------------------------------------------------- /deps/cppjieba/Trie.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/cppjieba/Trie.hpp -------------------------------------------------------------------------------- /deps/husky/http_req_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/husky/http_req_info.h -------------------------------------------------------------------------------- /deps/husky/irequest_handler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/husky/irequest_handler.h -------------------------------------------------------------------------------- /deps/husky/net_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/husky/net_util.h -------------------------------------------------------------------------------- /deps/husky/thread_pool_server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/husky/thread_pool_server.h -------------------------------------------------------------------------------- /deps/limonp/ArgvContext.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/ArgvContext.hpp -------------------------------------------------------------------------------- /deps/limonp/BlockingQueue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/BlockingQueue.hpp -------------------------------------------------------------------------------- /deps/limonp/BoundedBlockingQueue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/BoundedBlockingQueue.hpp -------------------------------------------------------------------------------- /deps/limonp/BoundedQueue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/BoundedQueue.hpp -------------------------------------------------------------------------------- /deps/limonp/Closure.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Closure.hpp -------------------------------------------------------------------------------- /deps/limonp/Colors.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Colors.hpp -------------------------------------------------------------------------------- /deps/limonp/Condition.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Condition.hpp -------------------------------------------------------------------------------- /deps/limonp/Config.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Config.hpp -------------------------------------------------------------------------------- /deps/limonp/FileLock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/FileLock.hpp -------------------------------------------------------------------------------- /deps/limonp/LocalVector.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/LocalVector.hpp -------------------------------------------------------------------------------- /deps/limonp/Logging.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Logging.hpp -------------------------------------------------------------------------------- /deps/limonp/Md5.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Md5.hpp -------------------------------------------------------------------------------- /deps/limonp/MutexLock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/MutexLock.hpp -------------------------------------------------------------------------------- /deps/limonp/NonCopyable.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/NonCopyable.hpp -------------------------------------------------------------------------------- /deps/limonp/StdExtension.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/StdExtension.hpp -------------------------------------------------------------------------------- /deps/limonp/StringUtil.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/StringUtil.hpp -------------------------------------------------------------------------------- /deps/limonp/Thread.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/Thread.hpp -------------------------------------------------------------------------------- /deps/limonp/ThreadPool.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/deps/limonp/ThreadPool.hpp -------------------------------------------------------------------------------- /dict/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/CMakeLists.txt -------------------------------------------------------------------------------- /dict/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/README.md -------------------------------------------------------------------------------- /dict/hmm_model.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/hmm_model.utf8 -------------------------------------------------------------------------------- /dict/idf.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/idf.utf8 -------------------------------------------------------------------------------- /dict/jieba.dict.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/jieba.dict.utf8 -------------------------------------------------------------------------------- /dict/pos_dict/char_state_tab.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/pos_dict/char_state_tab.utf8 -------------------------------------------------------------------------------- /dict/pos_dict/prob_emit.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/pos_dict/prob_emit.utf8 -------------------------------------------------------------------------------- /dict/pos_dict/prob_start.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/pos_dict/prob_start.utf8 -------------------------------------------------------------------------------- /dict/pos_dict/prob_trans.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/pos_dict/prob_trans.utf8 -------------------------------------------------------------------------------- /dict/stop_words.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/dict/stop_words.utf8 -------------------------------------------------------------------------------- /dict/user.dict.utf8: -------------------------------------------------------------------------------- 1 | 云计算 2 | 韩玉鉴赏 3 | 蓝翔 nz 4 | 微信 3000 nl 5 | -------------------------------------------------------------------------------- /script/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/script/CMakeLists.txt -------------------------------------------------------------------------------- /script/cjserver.start: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/script/cjserver.start -------------------------------------------------------------------------------- /script/cjserver.stop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/script/cjserver.stop -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/src/server.cpp -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) 2 | -------------------------------------------------------------------------------- /test/servertest/go_load_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/servertest/go_load_test.sh -------------------------------------------------------------------------------- /test/servertest/load_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/servertest/load_test.py -------------------------------------------------------------------------------- /test/servertest/run_curl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/servertest/run_curl.sh -------------------------------------------------------------------------------- /test/testdata/curl.res: -------------------------------------------------------------------------------- 1 | ["南京市", "长江大桥"] -------------------------------------------------------------------------------- /test/testdata/jieba.dict.0.1.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/jieba.dict.0.1.utf8 -------------------------------------------------------------------------------- /test/testdata/jieba.dict.0.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/jieba.dict.0.utf8 -------------------------------------------------------------------------------- /test/testdata/jieba.dict.1.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/jieba.dict.1.utf8 -------------------------------------------------------------------------------- /test/testdata/jieba.dict.2.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/jieba.dict.2.utf8 -------------------------------------------------------------------------------- /test/testdata/load_test.urls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/load_test.urls -------------------------------------------------------------------------------- /test/testdata/review.100: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/review.100 -------------------------------------------------------------------------------- /test/testdata/review.100.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/review.100.res -------------------------------------------------------------------------------- /test/testdata/server.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/server.conf -------------------------------------------------------------------------------- /test/testdata/testlines.gbk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/testlines.gbk -------------------------------------------------------------------------------- /test/testdata/testlines.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/testlines.utf8 -------------------------------------------------------------------------------- /test/testdata/userdict.2.utf8: -------------------------------------------------------------------------------- 1 | 千树万树梨花开 2 | -------------------------------------------------------------------------------- /test/testdata/userdict.english: -------------------------------------------------------------------------------- 1 | in 2 | internal 3 | -------------------------------------------------------------------------------- /test/testdata/userdict.utf8: -------------------------------------------------------------------------------- 1 | 云计算 2 | 韩玉鉴赏 3 | A 4 | B 5 | iPhone6 6 | 蓝翔 nz 7 | 忽如一夜春风来 8 | -------------------------------------------------------------------------------- /test/testdata/weicheng.utf8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanyiwu/cppjieba-server/HEAD/test/testdata/weicheng.utf8 --------------------------------------------------------------------------------