-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
貌似不支持 中英混合分词 #11
Comments
谢谢你的issue,你遇到的问题可能有两个原因:
如果你配好了dict和rule,而且node版本低于0.12,问题仍然呈现,请给我你的node版本我来跟进修复。 |
Cannot compiled with nodejs 4.5..
|
@jjhesk Hi, thanks for trying, since the huge change of the C++ addon API from node.js, it's only compatible with node version <= 0.12, for now. But I'll seek out a way to update this project recently. Stay tuned if you'll still need this. For now I suggest you use the command line version of scws. |
add pointer check before doing segment(close #12)
Hi @cnzoupeng,验证了一下是上一版引进的一个bug,已经在刚发布的v0.5.0 修复了,感谢。 |
var Scws = require("scws");
var settings = {
charset: 'utf8',
ignorePunct: true,
debug: true
}
var scws = new Scws.init(settings);
var txt2 = "引言 VMwareTools 是 VMware 虚拟机中很重要的一个工具包,有些时候在虚拟机中安装完操作系统会缺少网卡驱动,不能上网,这时只要安装 VMwareTools 就可以解决问题,下面以 CentOS 为例,来说明 VMwareTools 的安装方法";
var ret = scws.segment(txt2);
var strNew = [];
for(var i in ret){
strNew.push(ret[i].word);
}
console.log(strNew.join(' '));
scws.destroy();
[root@localhost scws]# node app.js
引言
The text was updated successfully, but these errors were encountered: