cogcomp-nlpy icon indicating copy to clipboard operation
cogcomp-nlpy copied to clipboard

No found Local Pipeline.

Open rodriguesfas opened this issue 7 years ago • 8 comments

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

rodriguesfas avatar Jul 28 '18 13:07 rodriguesfas

What is the snippet you use to run the code?

danyaljj avatar Jul 28 '18 13:07 danyaljj

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

rodriguesfas avatar Jul 28 '18 13:07 rodriguesfas

Can you try this please?

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

danyaljj avatar Jul 28 '18 13:07 danyaljj

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

rodriguesfas avatar Jul 28 '18 14:07 rodriguesfas

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.

nitishgupta avatar Jul 29 '18 20:07 nitishgupta

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 :(

rodriguesfas avatar Jul 30 '18 13:07 rodriguesfas

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.

nitishgupta avatar Jul 30 '18 15:07 nitishgupta

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

rodriguesfas avatar Aug 17 '18 18:08 rodriguesfas