搜索

大约有 70 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.1010秒)

1.求救PSCWS4问题

发布时间:2010-07-21 10:07 t By FG2008

.../ 加入头文件 require 'pscws/pscws4.class.php'; header("Content-Type:text/html;charset=utf-8"); // 建立分词类对像, 参数为字符集, 默认为 gbk, 可在后面调用 set_charset 改变 $pscws = new PSCWS4('utf-8'); $pscws->set_ignore('yes'); $pscws->set_dict('E:/scws/etc/dict....

2.编译无法通过,请问应该怎么办呢?

更新时间:2013-03-25 17:03 t By xiwillo

..._string const&, bool, int, bool)' ./.libs/libchertcheck.a(chert_check.o)(.text+0x1036): In function `ChertTableCheck::check(char const*, std::basic_stri ng const&, int, std::basic_ostream &)': : undefined reference to `ChertTable::open()' ./.libs/libchertcheck.a(chert_check.o)(.text+0x1088): In...

3.libscws的问题

发布时间:2009-12-02 16:12 t By nftw

...argv[]) { scws_t s; scws_res_t res, cur; char *text;// = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q币来玩, 我还听说过C#语言"; text = "我是一名中国的程序员"; if(argc == 2) text = argv[1]; ...

4.单个字母或单个字就截掉不出现了?

发布时间:2014-01-09 08:01 t By gardennet

$text = "a vnii a"; function get_tags_arr($title){ require 'pscws4/pscws4.class.php'; $cws = new PSCWS4('utf8'); $cws -> set_charset('utf-8'); $cws->set_dict('dict.utf8.xdb'); $cws->set_rule('pscws4/etc/rules.utf8.ini'); $cws->send_text($title); $words = $cws->get_tops(10); $cws->c...

5.为什么程序消耗的内存越来越大

更新时间:2010-03-02 17:03 t By backluck

...nclude int main() { scws_t s; scws_res_t res, cur; char *text = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q币来玩, 我还听说过C#语言"; int i; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); ex...

6.SCWS-1.1.9 没法分中文?

发布时间:2012-01-07 12:01 t By hejone

...clude #include main() { scws_t s; scws_res_t res, cur; char *text = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q币来玩, 我还听说过C#语言"; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); exit(-1); } scws_set_charset(s...

7.limit 参数好象没有效果。

发布时间:2011-01-28 18:01 t By whjtoby

...动试调用 ini 中指定路径下的词典和规则文件 $scws->send_text("这里没有调用 set_dict 和 set_rule 系统会自动试调用 ini"); $list = $scws->get_tops(3); settype($list, 'array'); foreach ($list as $tmp) { echo $tmp['word'].""; } $scws->...

8.addWeight提权的问题 提不上去

更新时间:2013-08-22 13:08 t By beike228

... ) [_terms:XSDocument:private] => [_texts:XSDocument:private] => [_charset:XSDocument:private] => UTF-8 [_meta:XSDocument:private] => Array ( [docid] => 9509 [rank] => 1 ...

9.自定义词库用不了。非常不解啊。。

发布时间:2011-10-21 16:10 t By ci169

# mydict_utf8.txt 我是新增词 爆红 再试一个 [php] $text = '最近撑腰体爆红网络我是新增词再试一个'; class scws { public $so; function get_microtime() { list($usec, $sec) = explode(' ', microtime()); return ((float)$usec + (float)$sec); } ...

10.RE: Linux C API scws_get_tops的调用方法

更新时间:2011-07-30 11:07 t By hightman

...历取出就好了,大概如下: scws_t s; scws_top_t top, cur; char *text = "测试说明文字"; s = scws_new(); scws_set_charset(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_send_text(s, text, strlen(text)); cur = top = scws_get_tops(s, 10, NULL); while (cur != N...

  • 时间不限
  • 按相关性排序