2.0.2 • Published 4 years ago

ckip-client v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.3

4 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago