Skip to content

About

lua jit scws

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

luajit_scws  openresty+lua+scws简单中文分词

#编译:

gcc -fPIC -shared -o scwsserver.so -I/usr/local/scws/include -I/usr/local/openresty/luajit/include/luajit-2.1 -L/usr/local/scws/lib -L/usr/local/openresty/luajit/lib scwsCApi2.c -lscws -lluajit-5.1

#使用: 本测试使用 openresty 拷贝scwsserver.so到openresty lualib下

require("scwsserver")
local xdbPath	= "dict.xdb"
local keywords = scwsserver.run(content,xdbPath)
for k,v in pairs(keywords) do
  ngx.say(k,v)
end

About

lua jit scws

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages