Giter Club home page Giter Club logo

Comments (4)

hightman avatar hightman commented on June 29, 2024

英文单词跟词典无关的。

Best Regards

hightman/海鳗


微信/微博:hightman
Github:https://github.com/hightman

在 2016年2月29日,下午7:21,♂ヤ〇點ㄋ↙ [email protected] 写道:

代码如下:

//测试分词
$cws = scws_new();
$cws->set_charset('utf8');
// use default dictionary & rules
//$cws->set_duality(false);
//$cws->set_ignore(true);
//$cws->set_multi(3);
//$cws->set_rule(dirname(dirname(FILE)).'/conf/scws/rules/rules.utf8.ini');
$cws->add_dict(dirname(dirname(FILE)).'/conf/scws/dict.utf8.xdb');
$cws->add_dict(dirname(dirname(FILE)).'/conf/scws/dict.utf8.txt', SCWS_XDICT_TXT);
$cws->send_text("JOHNBOSS 肖特 插刀架 5件套");
$res = $cws->get_result();
print_r($res);
die;

dict.utf8.txt:
插刀架 2.0
5件套 1.0 1.0 @
JOHNBOSS 1.0 1.0 !

然而并没有 删除 'JOHNBOSS', 查询结果依然存在

[root@localhost lib]# php console.php help
Array
(
[0] => Array
(
[word] => JOHNBOSS
[off] => 0
[len] => 8
[idf] => 5.1986036300659
[attr] => en
)

)
求解?


Reply to this email directly or view it on GitHub #28.

from scws.

cxc222 avatar cxc222 commented on June 29, 2024

@hightman 可是 插刀架 也没出来~

from scws.

hightman avatar hightman commented on June 29, 2024

想用好一个东西,最好先看看文档。
$scws->get_result() 应该循环调用好吧?

Best Regards

hightman/海鳗


微信/微博:hightman
Github:https://github.com/hightman

在 2016年3月1日,下午3:19,♂ヤ〇點ㄋ↙ [email protected] 写道:

@hightman https://github.com/hightman 可是 插刀架 也没出来~


Reply to this email directly or view it on GitHub #28 (comment).

from scws.

cxc222 avatar cxc222 commented on June 29, 2024

@hightman 奥....sorry, 我忽略了这个地方写法...

from scws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.