scws
scws copied to clipboard
开源免费的简易中文分词系统,PHP分词的上乘之选!
php ffi 支持的dll怎么编译
系统:FreeBSD 10.1 `root@xxxx:/usr/src/scws-1.2.1/phpext # make /bin/sh /usr/src/scws-1.2.1/phpext/libtool --mode=compile cc -I. -I/usr/src/scws-1.2.1/phpext -DPHP_ATOM_INC -I /usr/src/scws-1.2.1/phpext/include -I/usr/src/scws-1.2.1/phpext/main -I/usr/src/scws-1.2.1/phpext -I/usr/local/i nclude/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/loca l/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/scws -DHAVE_CONFIG_H -g -O2 -c /usr/src/scws-1.2.1/phpext/php_scws.c...
// sort it & return $cmp_func = create_function('$a,$b', 'return ($b[\'weight\'] > $a[\'weight\'] ? 1 : -1);'); 出现错误: Function create_function() is deprecated
这个:去西蒇旅游注意事项 http://www.xunsearch.com/scws/demo/pscws23/demo.php 去 西 蒇 旅游 注意事项 为什么不是: 去 西蒇 旅游 注意事项 西蒇不在里面。。。。是:西 和 蒇
看了config.m4确实自己不会写config.w32,大神能把这个加进去么?
php5.6-nts、php5.6ts,windows下编译好的dll文件有吗?
692 $so = scws_new(); 693 $so->set_charset('utf8'); 694 // 这里没有调用 set_dict 和 set_rule 系统会自动试调用 ini 中指定路径下的词典和规则文件 695 //$dictPath = ini_get('scws.default.fpath').'/dict.utf8.xdb'; 696 //$so->set_dict($dictPath);//设置词典 697 698 //$so->set_dict('/usr/local/scws/etc/dict.utf8.xdb'); 699 $so->add_dict('/usr/local/scws/etc/dict.user.txt'); 700 //$so->set_rule('/usr/local/scws/etc/rules.utf8.ini'); 701 702...
php7的 php_scws.dll急用,怎么编译
解决 #30 。 当然还有我这边的错误: > xdict.c(23): fatal error C1083: 无法打开包括文件: “unistd.h”: No such file or directory