mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
rewriting trie.cpp/h
This commit is contained in:
parent
ea36cf6794
commit
25ab67a503
@ -452,11 +452,6 @@ int main()
|
|||||||
Trie trie;
|
Trie trie;
|
||||||
trie.init();
|
trie.init();
|
||||||
trie.loadDict("../dicts/segdict.utf8.v2.1");
|
trie.loadDict("../dicts/segdict.utf8.v2.1");
|
||||||
//trie.init("dicts/jieba.dict.utf8");
|
|
||||||
//trie.init("dict.100");
|
|
||||||
//char utf[1024] = "我来到北京清华大学3D电视";
|
|
||||||
//trie.display();
|
|
||||||
//getchar();
|
|
||||||
cout<<trie.getMinWeight()<<endl;
|
cout<<trie.getMinWeight()<<endl;
|
||||||
cout<<trie.getTotalCount()<<endl;
|
cout<<trie.getTotalCount()<<endl;
|
||||||
trie.destroy();
|
trie.destroy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user