Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

[npm] 自然语言处理API服务

$
0
0

hanlp client

自然语言处理API服务

Welcome

Configure

By default, hanlp-client connected with nlp.chabot.io.

Just set HANLP_SERVER_URL as an environment variable for customized URL.

e.g.

export HANLP_SERVER_URL=http://localhost:3002

Usage

npm install hanlp-client
var client = require('hanlp-client')
介绍方法
中文分词client.cutSentence(data)
提取关键词client.getKeywords(data)
实体命名标识:人名,地名,组织机构名称client.matchEntities(data)
名词client.matchNoun(data)
副词client.matchAdverbs(data)
动词client.matchVerbs(data)
形容词client.matchAdjectives(data)
指示代词client.matchPronouns(data)
摘要client.getSummary(data)
摘要和关键词client.getSummaryAndKeywords(data)
短语提取client.getPhrase(data)
繁体转简体client.convertJT(data)
简体转繁体client.convertFT(data)
转拼音client.convertPY(data)
联合:同时获得keywords/nouns/entities/adverbs/verbs/adjectives/pronounsclient.combine(data)

API详细介绍及示例

Test

ava

About me

LICENSE

MIT


Viewing all articles
Browse latest Browse all 14821

Trending Articles