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

ckip-client

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ckip-client

CKIP Client for Node.js

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by125%
Maintainers
1
Weekly downloads
 
Created
Source

ckip-client

NPM version Build Status Coverage Status

CKIP Client for Node.js

Install

$ npm install --save ckip-client

Usage

const CKIPClient = require('ckip-client')

const ckip = new CKIPClient({ host, port, user, pass })

ckip.segment('台新金控12月3日將召開股東臨時會進行董監改選。')
  .then(sentences => console.log(sentences))

// [ [ '台新', '金控', '12月', '3日', '將', '召開', '股東', '臨時會', '進行', '董監', '改選', '。' ] ]

Part-of-speech (POS) tagging

ckip.segment('台新金控12月3日將召開股東臨時會進行董監改選。', { tag: true })
  .then(sentences => console.log(sentences))

// [ [ { word: '台新', tag: 'N' },
//     { word: '金控', tag: 'N' },
//     { word: '12月', tag: 'N' },
//     { word: '3日', tag: 'N' },
//     { word: '將', tag: 'ADV' },
//     { word: '召開', tag: 'Vt' },
//     { word: '股東', tag: 'N' },
//     { word: '臨時會', tag: 'N' },
//     { word: '進行', tag: 'Vt' },
//     { word: '董監', tag: 'N' },
//     { word: '改選', tag: 'Nv' },
//     { word: '。', tag: 'PERIODCATEGORY' } ] ]

Reference

CKIP中文斷詞系統

License

MIT © Chun-Kai Wang

Keywords

FAQs

Package last updated on 06 May 2020

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