yanyiwu / cppjieba

"结巴"中文分词的C++版本
MIT License
2.61k stars 690 forks source link

Add user_dict to server #27

Closed ghost closed 10 years ago

ghost commented 10 years ago

Is it possible to add user_dict to server by adding a line to the Server.conf?

usr_dict_path=/usr/share/CppJieba/dict/user.dict.utf8

Sorry I am not familiar with cpp.

Thanks.

yanyiwu commented 10 years ago

@windch yes. it's already done just now. please see details in README.md, you will find the way to add user_dict_path just like you described above.

remember to update your CppJieba's source code. and redo

make
sudo make install
ghost commented 10 years ago

Wow! It works like a charm. You rock!