Skip to content

Chinese tokenizer base on nodejieba and pullword

Notifications You must be signed in to change notification settings

HuangStomach/the-imp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the-Imp

中文分词服务,提供基于HTTP的Restful风格接口 可通过docker部署跨语言使用

包含整合:

docker run \
    --name=the-imp \
    -d \
    -v ~/the-imp/config:/usr/src/app/config \
    -v ~/the-imp/dict:/usr/src/app/dict \
    -p 80:80/tcp \
    --restart=always \
    --privileged \
    huangstomach/the-imp:latest

使用方法实例

GET http://localhost/segment?word=我有一只小柯基
[
    [
        "我有",
        "一只",
        "小柯",
        "柯基"
    ],
    [
        "我",
        "有",
        "一只",
        "小",
        "柯基"
    ]
]