2.0.2 • Published 7 years ago

hanlp-client v2.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hanlp client

自然语言处理API服务

Welcome

npm.io

npm install hanlp-client

Configure

hanlp-client connected with nlp.arrking.com.

Usage

var HanlpClient = require('hanlp-client')
var client = new HanlpClient(CLIENT_ID, CLIENT_SECRET);

Get CLIENT_ID, CLIENT_SECRET from Austack.

Login > Application > New Application > Settings

npm.io

APIs

介绍方法
中文分词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.matchNames(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/pronouns/namesclient.combine(data)

API详细介绍及示例

Test

ava

Compatibility

This module uses async/await. So, use it with Node.js 7.1.6+.

LICENSE

MIT