Closed sarlinpe closed 6 years ago
hmm .... can you try a different path?
Say self.ProtobufSerializer.writeToFile(text_annotation,'/cluster/home/psarlin/file.test')
or alternatively make you sure you this folder: . ccg_nlpy
Same problem with a different path. I do own $HOME
and its subfolder .ccg_nlpy
.
@Skydes I'm sorry for the inconvenience.
What version of pyjnius
are you using?
This command should contain the version:
pip show pyjnius
pip show ccg_nlpy
Could you try to covert the "path" into Java String as suggested in #86, like self.ProtobufSerializer.writeToFile(text_annotation,self.JString(path))
. This line is also passing parameters to Java API, so it is likely to be the same string conversion issue.
@GHLgh @danyaljj PR https://github.com/CogComp/cogcomp-nlpy/pull/88 solved the issue, thanks a lot!
Thanks a lot for this awesome toolbox! After solving the issue https://github.com/CogComp/cogcomp-nlpy/issues/86 with the provided fix, another problem arises when running the same test example:
It seems that the serialization call https://github.com/CogComp/cogcomp-nlpy/blob/5c3008d68f466388d5c70066edbf95f2afe1de4f/ccg_nlpy/local_pipeline.py#L70 does not produce any file. Any suggestion ?