GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - falood/exjieba: Elixir verison of Jieba, a Chinese word segmentation module.

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
priv
priv
 
 
src
src
 
 
test
test
 
 
.formatter.exs
.formatter.exs
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.travis.yml
.travis.yml
 
 
Makefile
Makefile
 
 
README.org
README.org
 
 
mix.exs
mix.exs
 
 

Repository files navigation

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

Elixir verison of Jieba Base on libcppjieba.

Usage

Erlang/OTP 22 [erts-10.4.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

rm -rf priv/*_segment.*
git submodule update --init
mkdir -p priv && \
cc -g -fPIC -O3 -I/home/falood/.asdf/installs/erlang/22.0.7/erts-10.4.4/include -Ipriv/libcppjieba/include -shared -lstdc++ -DLOGGER_LEVEL=LL_ERROR src/mp_segment.cpp -o priv/mp_segment.so 2>&1 >/dev/null
mkdir -p priv && \
cc -g -fPIC -O3 -I/home/falood/.asdf/installs/erlang/22.0.7/erts-10.4.4/include -Ipriv/libcppjieba/include -shared -lstdc++ -DLOGGER_LEVEL=LL_ERROR src/hmm_segment.cpp -o priv/hmm_segment.so 2>&1 >/dev/null
mkdir -p priv && \
cc -g -fPIC -O3 -I/home/falood/.asdf/installs/erlang/22.0.7/erts-10.4.4/include -Ipriv/libcppjieba/include -shared -lstdc++ -DLOGGER_LEVEL=LL_ERROR src/mix_segment.cpp -o priv/mix_segment.so 2>&1 >/dev/null
mkdir -p priv && \
cc -g -fPIC -O3 -I/home/falood/.asdf/installs/erlang/22.0.7/erts-10.4.4/include -Ipriv/libcppjieba/include -shared -lstdc++ -DLOGGER_LEVEL=LL_ERROR src/query_segment.cpp -o priv/query_segment.so 2>&1 >/dev/null
Interactive Elixir (1.9.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> ExJieba.MixSegment.cut "工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作"
["工信处", "女干事", "每月", "经过", "下属", "科室", "都", "要",
 "亲口", "交代", "24", "口", "交换机", "等", "技术性", "器件",
 "的", "安装", "工作"]

TODO_LIST

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

THANKS

  • libcppjieb by aszxqw
  • jieba by SunJunyi

About

Elixir verison of Jieba, a Chinese word segmentation module.

Resources

Readme
Activity

Stars

38 stars

Watchers

4 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.