Yanyi Wu
714a297823
build: update CMakeLists.txt to include additional directories for test configuration
...
- Added include directories for the current binary and test directories to improve test file accessibility.
- Ensured proper configuration for test paths in the build process.
2025-05-02 23:47:37 +08:00
Yanyi Wu
c14131e3e2
refactor: clean up load_test.cpp by removing unused dependencies and tests
...
- Removed unused Jieba test and associated includes from load_test.cpp.
- Simplified main function to focus on essential operations.
- Ensured consistent exit handling by returning EXIT_SUCCESS.
2025-05-02 23:41:53 +08:00
Yanyi Wu
9cd64a1694
build: enhance test configuration and path management
...
- Added configuration for test paths in CMake to simplify file references.
- Updated load_test.cpp and various unit tests to use defined path macros for dictionary and test data files.
- Introduced test_paths.h.in to manage directory paths consistently across tests.
2025-05-02 23:33:18 +08:00
Yanyi Wu
b5dc8e7a35
build: update .gitignore and CMakeLists for test configuration
...
- Added entries to .gitignore for temporary test files.
- Included a message to display MSVC value during build.
- Added UTF-8 compile option for MSVC in unittest CMakeLists.
2025-05-02 21:28:28 +08:00
yanyiwu
9cda7f33e8
build: upgrade googletest from 1.11.0 to 1.12.1
2025-04-12 10:02:10 +08:00
yanyiwu
42a93a4b98
Refactor decoding functions to use UTF-8 compliant methods
...
Updated multiple files to replace instances of DecodeRunesInString with DecodeUTF8RunesInString, ensuring proper handling of UTF-8 encoded strings. This change enhances the robustness of string decoding across the cppjieba library, including updates in DictTrie, HMMModel, PosTagger, PreFilter, SegmentBase, and Unicode files. Additionally, corresponding unit tests have been modified to reflect these changes.
2024-12-08 16:46:24 +08:00
yanyiwu
aa1def5ddb
class Jiaba unittest add default argument input
2024-09-22 09:43:04 +08:00
yanyiwu
5ef74f335a
Revert "cmake: enable windows/msvc test"
...
This reverts commit 63392627552b018ea018848c82965c263b0030fa.
2024-09-21 23:58:59 +08:00
yanyiwu
6339262755
cmake: enable windows/msvc test
2024-09-21 21:49:56 +08:00
yanyiwu
dbebc7cacb
cmake: enable windows/msvc test
2024-09-21 21:10:53 +08:00
yanyiwu
e521f26456
removed test/demo.cpp and linked https://github.com/yanyiwu/cppjieba-demo
2024-09-21 17:26:19 +08:00
yanyiwu
a110ab10cc
[cmake] fetch googletest
2024-08-16 10:13:07 +08:00
yanyiwu
fe88bd29ac
[submodules] rm test/googletest
2024-08-16 10:08:36 +08:00
yanyiwu
79a235223d
[CI] windows-[2019,2022]
2024-07-28 23:16:11 +08:00
yanyiwu
c39fd30f93
[googletest] v1.6.0->v1.10.0
2024-07-28 22:41:20 +08:00
yanyiwu
8aad517375
git submodule add googletest-1.6.0
2024-07-22 22:36:45 +08:00
张家麟
1089dcdcd3
Update demo.cpp
...
多了个分号~ 虽然影响不大~
2018-01-29 10:12:38 +00:00
yanyiwu
74c70c70cd
create keyword_extract in Jieba
2016-09-11 21:42:53 +08:00
yanyiwu
0984c9ed3f
update user dict loading method about word weight, and add unit tests
2016-07-22 23:53:49 +08:00
t-k-
e40270ca86
Avoid using `initializer lists' from C++0x.
2016-07-06 13:48:18 -06:00
t-k-
5775a40bee
Add LookupTag function for single token tag lookup.
2016-07-06 02:44:56 -06:00
Jaimin Pan
ce8cafe54a
add tag capbility for each segments
2016-06-27 18:10:42 +08:00
sooda
7d503e4b13
fix unittest cmake macro bug
2016-06-08 10:38:20 +08:00
yanyiwu
c425bcc49f
add Jieba::ResetSeparators api and unittest
2016-05-09 22:49:51 +08:00
yanyiwu
b355e9f487
update unittest to pass 'make test'
2016-05-04 19:33:05 +08:00
yanyiwu
5c739484ae
merge the latest codes in master branch, and update unittest cases to pass ci
2016-05-03 23:20:03 +08:00
yanyiwu
f253db0133
use map/set instead of unordered_map/unordered_set to make result stable
2016-05-03 21:24:40 +08:00
yanyiwu
39316114c5
correct unittest case
2016-05-03 20:49:47 +08:00
yanyiwu
a1ea1d0757
add textrank unittest into cmake
2016-05-03 20:01:44 +08:00
mayunyun
0f66a923b3
1.增加单元测试
...
2.增加了构造函数的重载,增加了提取函数的重载
2016-05-03 18:06:14 +08:00
yanyiwu
5ac9e48eb0
rewrite QuerySegment, make Jieba::CutForSearch
behaves the same as [jieba] cut_for_search
api
...
remove Jieba::SetQuerySegmentThreshold
2016-05-02 16:18:36 +08:00
qinwf
c84594f620
add Windows CI with MSVC
2016-04-27 17:45:48 +08:00
yanyiwu
3befc42697
update KeywordExtractor::Word's printing format to json format
2016-04-19 16:00:53 +08:00
yanyiwu
29e085904d
add log and unittest
2016-04-18 14:55:42 +08:00
yanyiwu
63e9c94fb7
add unicode decoding unittest
2016-04-18 14:37:17 +08:00
yanyiwu
6fa843b527
override Cut functions, add location information into Word results;
2016-04-17 23:39:57 +08:00
yanyiwu
b6703aba90
use offset instead of str in RuneStr
2016-04-17 22:50:32 +08:00
yanyiwu
e7a45d2dde
remove LevelSegment
2016-04-17 22:23:00 +08:00
yanyiwu
dcced8561e
remove namespace unicode
2016-04-17 21:59:10 +08:00
yanyiwu
339e3ca772
big change: add RuneStr for the position of word in string
2016-04-17 17:30:05 +08:00
yanyiwu
81cd435f2a
prettify demo output
2016-03-28 01:22:24 +08:00
yanyiwu
c19736995c
Add KeywordExtractor::Word and add more overrided KeywordExtractor::Extract
2016-03-26 22:12:40 +08:00
yanyiwu
e6a2b47b87
hange the return value of KeywordExtractor::Extract from bool to void
2016-03-26 01:16:44 +08:00
yanyiwu
0a7b6e62f3
add Unicode32 cases for cut testing
2016-02-18 15:18:35 +08:00
yanyiwu
e6454fef77
use HashMap in Trie, and remove the base array of trie root node, see details in Changelog
2016-02-12 01:37:39 +08:00
yanyiwu
34668aa379
remove server, see details in ChangeLog.md
2016-01-21 01:07:31 +08:00
yanyiwu
193e717d22
override constructor in KeywordExtractor
2016-01-13 00:40:46 +08:00
yanyiwu
b41cb0e2ee
fix compile error
2016-01-11 14:50:14 +08:00
yanyiwu
3c5ad24260
source code layout change:
...
1. src/ -> include/cppjieba/
2. src/limonp/ -> deps/limonp/
3. server/husky -> deps/husky/
4. test/unittest/gtest -> deps/gtest
2016-01-11 14:25:02 +08:00
yanyiwu
bcb112a4b1
upgrade basic functions
2015-12-12 21:25:57 +08:00