-
This issue is for planning the Software Carpentry sessions.
Dates:
R Session: September 20 & 21
Python Session: September 22 & 23
Times: TBD
-
我试验过
``` php
$scws = new \XSTokenizerScws();
$scws->setCharset('utf8');
// $scws->getResult("what are you doing?");
$scws->getResult("据悉,2014年吸毒事件后,柯震东参加了不少公益校园活动,希望能透…
-
Updated
根据@Timandes的提示,解决了编译的问题,具体做法如下:
1.搭建环境,我本机为VS2012+编译好的PHP5.5.35+php-sdk-binary-tools+deps-5.5-vc11-x64+zlib,需求是php5.5在windows x64系统下,线程安全模式的扩展;
2打开win32下的scws.sln,接受升级建议;
3配置管理器中,新建活动解决平台方案…
-
操作系统: windows 10
VS: Visual studio 2012
PHP: php 5.6.19
SCWS: 1.2.3
按照文档里写的配置了编译环境,但是出错。提示如下:
> 1>------ 已启动生成: 项目: libscws, 配置: Debug Win32 ------
> 1> xtree.c
> 1>d:\php-sdk\phpdev\vc11\x86\scw…
-
代码如下:
> //测试分词
> $cws = scws_new();
> $cws->set_charset('utf8');
> // use default dictionary & rules
> //$cws->set_duality(false);
> //$cws->set_ignore(true);
…
-
[root@localhost phpext]# ./configure --with-scws=/usr/local --with-php-config=/usr/local/php7/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /us…
-
比如英文的cat 和cats应该是一个词,但现在变成2个词了
-
/bin/sh /usr/src/scws-1.2.2/phpext/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/src/scws-1.2.2/phpext/include -I/usr/src/scws-1.2.2/phpext/main -I/usr/src/scws-1.2.2/phpext -I/usr/local/include/php -I…
-
-
I try to segment the word "happy birthday to you"
SCWS always return me only 1 array.
array(1) { [0]=> array(5) { ["word"]=> string(5) "happy" ["off"]=> int(0) ["len"]=> int(5) ["idf"]=> float(4.023…