Skip to main content

CKIP NLP Wrappers

Project description

CKIP NLP Wrappers (Word Segmentation and Parser)

Introduction

Git

https://github.com/emfomy/pyckip

Github Release Github License Github Forks Github Stars Github Watchers

PyPI

https://pypi.org/project/pyckip

Pypi Version Pypi License Pypi Format Pypi Python Pypi Implementation Pypi Status

Author

Requirements

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.

Source Distribution

pyckip-0.3.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page