{"id":16423145,"url":"https://github.com/hailiang-wang/hanlp-client","last_synced_at":"2025-10-26T22:31:42.615Z","repository":{"id":57260741,"uuid":"91311097","full_name":"hailiang-wang/hanlp-client","owner":"hailiang-wang","description":"HanNLP Client for Node.js","archived":false,"fork":false,"pushed_at":"2017-05-27T06:23:14.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T00:51:06.281Z","etag":null,"topics":["chatbot","nlp"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hailiang-wang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T08:04:03.000Z","updated_at":"2024-04-23T12:38:11.000Z","dependencies_parsed_at":"2022-08-25T02:11:40.502Z","dependency_job_id":null,"html_url":"https://github.com/hailiang-wang/hanlp-client","commit_stats":null,"previous_names":["samurais/hanlp-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fhanlp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fhanlp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fhanlp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hailiang-wang%2Fhanlp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hailiang-wang","download_url":"https://codeload.github.com/hailiang-wang/hanlp-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238408452,"owners_count":19467097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","nlp"],"created_at":"2024-10-11T07:38:56.157Z","updated_at":"2025-10-26T22:31:37.361Z","avatar_url":"https://github.com/hailiang-wang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hanlp client\n[自然语言处理API服务](http://nlp.chatbot.io/public/index.html)\n\n## Welcome\n![](https://camo.githubusercontent.com/ae91a5698ad80d3fe8e0eb5a4c6ee7170e088a7d/687474703a2f2f37786b6571692e636f6d312e7a302e676c622e636c6f7564646e2e636f6d2f61692f53637265656e25323053686f74253230323031372d30342d30342532306174253230382e32302e3437253230504d2e706e67)\n\n```\nnpm install hanlp-client\n```\n\n## Configure\n**hanlp-client** connected with [nlp.arrking.com](http://nlp.arrking.com/public/index.html).\n\n## Usage\n```\nvar HanlpClient = require('hanlp-client')\nvar client = new HanlpClient(CLIENT_ID, CLIENT_SECRET);\n```\n\nGet **CLIENT\\_ID, CLIENT_SECRET** from [Austack](http://dashboard.arrking.com).\n\n\u003e Login \u003e Application \u003e New Application \u003e Settings\n\n![](https://raw.githubusercontent.com/rockq-org/austack/master/images/get_austack_token.png)\n\n## APIs\n\n| 介绍 | 方法 | \n| --- | --- |\n| 中文分词 | client.cutSentence(data) | \n| 提取关键词 | client.getKeywords(data) | \n| 实体命名标识：人名，地名，组织机构名称 | client.matchEntities(data) | \n| 名词 | client.matchNoun(data) | \n| 副词 | client.matchAdverbs(data) | \n| 动词 | client.matchVerbs(data) | \n| 形容词 | client.matchAdjectives(data) | \n| 指示代词 | client.matchPronouns(data) | \n| 人名 | client.matchNames(data) | \n| 摘要 | client.getSummary(data) | \n| 摘要和关键词 | client.getSummaryAndKeywords(data) | \n| 短语提取 | client.getPhrase(data) | \n| 繁体转简体 |  client.convertJT(data) | \n| 简体转繁体 | client.convertFT(data) | \n| 转拼音 | client.convertPY(data) | \n| 联合：同时获得keywords/nouns/entities/adverbs/verbs/adjectives/pronouns/names |client.combine(data) | \n\n[API详细介绍及示例](https://github.com/Samurais/hanlp-client/blob/master/test/index.js)\n\n## Test\n```\nava\n```\n\n## Compatibility\nThis module uses async/await. \nSo, use it with Node.js 7.1.6+.\n\n## LICENSE\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhailiang-wang%2Fhanlp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhailiang-wang%2Fhanlp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhailiang-wang%2Fhanlp-client/lists"}