ckiplab / ckip-classic Goto Github PK
View Code? Open in Web Editor NEWCKIP Classic Word Segmentation and Sentence Parsing Tools
License: GNU General Public License v3.0
CKIP Classic Word Segmentation and Sentence Parsing Tools
License: GNU General Public License v3.0
The WS and Parser usually cause segmentation fault at program closing.
Weeks ago, CKIPParserClient(python package) works fine.
It can quickly generate correct parsing result.
Recently although it still generate normal parsing result.
But the generation speed is so slow(~6 sec/sentence), that I can not test my system which use CKIPParserClient as parsing backend.
Any workaround?
How can I install this project. Thanks
Reference: ckiplab/ckipnlp#29
os: ubuntu
python: 2.7.17
problem: can not import ckipparser
Sorry to bother, I have some problem using ckipparser, at first I install the package by typing the command below, and it shows it's installed successfully
pip install --force-reinstall --upgrade ckip-classic --install-option='--parser'
but when I import the package import ckip_classic.parser,
there throws an error
ImportError: Please reinstall ‘ckip-classic’ with ‘--install-option='--parser'’. --install-option='--parser-dir=<...>'Visit https://pypi.org/project/ckip-classic for more information.
so I went back to install it again,
I add the parserdir option to the command and create a dir /home/ann2/CKIP/ckipparser
pip install --force-reinstall --upgrade ckip-classic --install-option='--parser' --install-option='--parser dir="/home/ann2/CKIP/ckipparser"
however it shows that it can not find the dir /home/ann2/CKIP/ckipparser/lib
error: --parser-lib-dir (/home/ann2/CKIP/ckipparser/lib) is not a directory
Running setup.py install for ckip-classic ... error
Rolling back uninstall of ckip-classic
Moving to /home/ann2/.conda/envs/assa/lib/python3.6/site-packages/ckip_classic-1.2.2-py3.6.egg-info
from /home/ann2/.conda/envs/assa/lib/python3.6/site-packages/~kip_classic-1.2.2-py3.6.egg-info
Moving to /home/ann2/.conda/envs/assa/lib/python3.6/site-packages/ckip_classic/
from /home/ann2/.conda/envs/assa/lib/python3.6/site-packages/~kip_classic
ERROR: Command errored out with exit status 1: /home/ann2/.conda/envs/assa/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yz9o1ngl/ckip-classic_b6076411d5b448d4bf367b6b016a996b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yz9o1ngl/ckip-classic_b6076411d5b448d4bf367b6b016a996b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qpoianbo/install-record.txt --single-version-externally-managed --compile --install-headers /home/ann2/.conda/envs/assa/include/python3.6m/ckip-classic --parser --parser-dir=/home/ann2/CKIP/ckipparser Check the logs for full command output.
when I try to add the dir (/home/ann2/CKIP/ckipparser/lib
) to my folder , the error goes away, except for lib, it also shows that it need other folders like Data2
, Rule
or RDB
, but after I add the following folder, there wasn't any file download to them, and the log shows:
[1/1] Cythonizing src/parser/ckipparser.pyx
- [WARNING] Shared library not exist: /home/ann2/CKIP/ckipparser/lib/libCKIPCoreNLP.so
- [WARNING] Shared library not exist: /home/ann2/CKIP/ckipparser/lib/libCKIPParser.so
- [WARNING] Shared library not exist: /home/ann2/CKIP/ckipparser/lib/libCKIPWS.so
- [WARNING] Shared library not exist: /home/ann2/CKIP/ckipparser/lib/libCKIPSRL.so
- Use "Data2" from "/home/ann2/CKIP/ckipparser/Data2"
- Found 0 files
- Use "Rule" from "/home/ann2/CKIP/ckipparser/Rule"
- Found 0 files
- Use "RDB" from "/home/ann2/CKIP/ckipparser/RDB"
- Found 0 files
I'm wondering if it's the correct way to install the package? Or should I modify the dir ckip installed?
Thank you for your attention.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.