JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q58003F
  • License MIT

NLP Client Package with hanlp-api service

Package Exports

  • hanlp-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hanlp-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.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/names client.combine(data)

API详细介绍及示例

Test

ava

About me

LICENSE

MIT