in reply to Re^3: Exporter Problem
in thread Exporter Problem
Thanks for the recommendation. I think the issue is that Lingua::StanfordCoreNLP has the java code in the __DATA__ section of the PM file. My understanding is that the __DATA__ section is not read until runtime so the perl bindings to the java classes and methods can't happen until runtime. I was trying to create a Lingua::StanfordCoreNLP::Pipeline object in my package to store it as a package global. Doing this at that time, the Pipeline object is not defined yet.
My work around is to create the pipeline object at runtime and pass it along to the new method of my package.
I am also having trouble with using inline::java in a mod_perl environment -- there is information about this problem in the docs. I will pursue an Inline::Java thread if I run into more problems.
Thanks for your help!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Exporter Problem
by syphilis (Archbishop) on Feb 20, 2013 at 03:18 UTC | |
by Anonymous Monk on Feb 23, 2013 at 03:06 UTC | |
by syphilis (Archbishop) on Feb 23, 2013 at 10:12 UTC | |
by osler (Sexton) on Feb 25, 2013 at 01:52 UTC |