搜索

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

1.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...

2.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 ...

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.自定义词库用不了。非常不解啊。。

发布时间: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); } ...

5.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->...

6.RE: cygwin编译出错

更新时间:2011-08-17 23:08 t By 司徒隐

...e.lo /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[2]: *** [libscws.la] Error 1 make[2]: Leaving directory `/home/sundaming/scws-1.1.6/libscws' make[1]: *** [all-recursive] Error 1 ...

7.scws_set_multi复式分割无效

更新时间:2011-11-03 17:11 t By xjtdy888

...code] #include #include main() { scws_t s; scws_res_t res, cur; char *text = "上海市"; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); exit(-1); } scws_set_charset(s, "utf-8"); scws_set_dict(s, "/usr/local/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/...

8.RE:1262

发布时间:2008-01-14 21:01 t By xueron

[code] use Text::Scws; my $scws = Text::Scws->new; $scws->set_dict('dict.xdb'); $scws->set_rule('rule.ini'); $scws->set_ignore(1); $scws->set_multi(1); my $s = shift; $scws->send_text($s); while (my $r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } ...

9.使用自定义词典时无法取得字典中的内容

更新时间:2011-08-08 17:08 t By 999

...ct($sh, 'dict.txt', SCWS_XDICT_TXT); //scws_set_rule($sh, 'rules.ini'); $text = "我发现个文字‘再试一个’"; scws_send_text($sh, $text); $top = scws_get_tops($sh, 5); print_r($top); [/php] dict.txt的内容为: # WORD TF IDF ATTR 再试一个 1.0 1.0 @ 可结果中并匹...

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

更新时间: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...

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