Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hanlp-client

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hanlp-client

NLP Client Package with hanlp-api service

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hanlp client

自然语言处理API服务

Welcome

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

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

Keywords

FAQs

Package last updated on 27 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc