提供 中研院中文斷詞系統 的 Python API 綁定
$ pip install ckipfrom ckip import CKIP
client = CKIP('username', 'password')
# Return list of list of tuples, where each list item represents a sentence
# and each tuple having the format of (term, POS).
client.Segment('台新金控12月3日將召開股東臨時會進行董監改選。')- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request