/exjieba

Elixir verison of Jieba, a Chinese word segmentation module.

Primary LanguageC++

Exjieba https://api.travis-ci.org/falood/exjieba.png?branch=master

Elixir verison of Jieba Base on libcppjieba.

Usage

Erlang 17 (erts-6.0) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (0.13.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> ExJieba.MixSegment.init
:ok
iex(2)> ExJieba.MixSegment.cut "小明硕士毕业于**科学院计算所,后在日本京都大学深造 "
["小明", "硕士", "毕业", "于", "**科学院", "计算所", ",", "后", "在", "日本京都大学", "深造"]

TODO_LIST

  • [ ] custom dict
  • [X] MPSegment
  • [X] MixSegment
  • [X] FullSegment
  • [X] QuerySegment

THANKS