CKIP NLP Wrappers
Project description
CKIP NLP Wrappers (Word Segmentation and Parser)
Introduction
Git
PyPI
Requirements
Python 2.7+, 3.5+
Cython 0.29+
Boost C++ Libraries 1.54.0
CKIP Word Segmentation Linux version
CKIP Parser Linux version
Installation
Step 1: Setup CKIPWS environment
Denote <ckipws-linux-root> as the root path of CKIPWS Linux Version. Add below command to ~/.bashrc
export LD_LIBRARY_PATH=<ckipws-linux-root>/lib:$LD_LIBRARY_PATH
export CKIPWS_DATA2=<ckipws-linux-root>/Data2
Step 2: Setup CKIP-Parser environment
Denote <ckipparser-linux-root> as the root path of CKIP-Parser Linux Version. Add below command to ~/.bashrc
export LD_LIBRARY_PATH=<ckipparser-linux-root>/lib:$LD_LIBRARY_PATH
export CKIPPARSER_RULE=<ckipparser-linux-root>/Rule
export CKIPPARSER_RDB=<ckipparser-linux-root>/RDB
Step 3: Install Using Pip
LIBRARY_PATH=<ckipws-linux-root>/lib:<ckipparser-linux-root>/lib:$LIBRARY_PATH pip install pyckip
FAQ
I don’t have CKIPWS/CKIP-Parser. What should I do?
Append --install-option='--no-ws'
or --install-option='--no-parser'
after the pip install
command to disable CKIPWS or CKIP-Parser.
# Disable CKIPWS support
pip install pyckip --install-option='--no-ws'
# Disable CKIP-Parser support
pip install pyckip --install-option='--no-parser'
The CKIPWS throws “what(): locale::facet::_S_create_c_locale name not valid”. What should I do?
apt-get install locales-all
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.