Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No found Local Pipeline. #106

Open
rodriguesfas opened this issue Jul 28, 2018 · 8 comments
Open

No found Local Pipeline. #106

rodriguesfas opened this issue Jul 28, 2018 · 8 comments

Comments

@rodriguesfas
Copy link

I would like help with Local Pipeline, I get the following error when I try to play the initial experiment.

INFO:ccg_nlpy.pipeline_config:Using local pipeline
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Traceback (most recent call last):
File "/home/rodriguesfas/Workspace/Text-Mining/Tool_NLP/CogComp/example-02.py", line 5, in
pipeline = local_pipeline.LocalPipeline()
File "/home/rodriguesfas/anaconda3/envs/text_minning/lib/python2.7/site-packages/ccg_nlpy/local_pipeline.py", line 62, in__init__
self.pipeline = self.PipelineFactory.buildPipelineWithAllViews(self.Boolean(True))
File "jnius/jnius_export_class.pxi", line 906, in jnius.JavaMultipleMethod.call
File "jnius/jnius_export_class.pxi", line 637, in jnius.JavaMethod.call
File "jnius/jnius_export_class.pxi", line 803, in jnius.JavaMethod.call_staticmethod
File "jnius/jnius_utils.pxi", line 93, in jnius.check_exception
JavaException: JVM exception occurred: Index: 0, Size: 0

@danyaljj
Copy link
Member

What is the snippet you use to run the code?

@rodriguesfas
Copy link
Author

The code example I am trying to execute is as follows:

Basic Local Pipeline

from ccg_nlpy import local_pipeline
pipeline = local_pipeline.LocalPipeline()

constructor declaration: LocalPipeline()

document = [ ["Hi", "!"], ["How", "are", "you", "?"] ]
doc = pipeline.doc(document, pretokenized=True)
print doc

@danyaljj
Copy link
Member

Can you try this please?

document = "Hi how are you?"
doc = pipeline.doc(document)

@rodriguesfas
Copy link
Author

The same error, I checked if it was a problem with Marven, but it works fine.

@nitishgupta
Copy link
Member

nitishgupta commented Jul 29, 2018

Want to make sure if you used this command to download the models.
python -m ccg_nlpy download
If you've already downloaded models, delete the .ccg_nlpy directory from your $HOME folder and re-download.

@rodriguesfas
Copy link
Author

exclude, and redo the steps, without success. So for you is the local pipeline running? Here for me, the Remote pipeline works correctly, the problem is in the local papeline :(

@nitishgupta
Copy link
Member

Yes, the local pipeline works correctly. I suggest you uninstall ccg_nlpy, re-install, and re-download the models. I tried it on my end, and it works.

@rodriguesfas
Copy link
Author

Worked, thank you!
could you tell me the complete documentation to use with pyhton?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants