Giter VIP home page Giter VIP logo

ckip-classic's People

Contributors

emfomy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ckip-classic's Issues

CKIPParserClient very slow

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?

parser import error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.