Eduardo,

I replied here with what I think is happening:
http://perlmonks.org/?node_id=1020270

In your case you can add :

  Inline->init() ;

juste before the

  my $pipeline = ...

as a workaround.


You could also only initialize you pipeline object at runtime, that will
also work:

my $pipeline = undef ;

sub new {
  my $callee = shift;
  my $package = ref $callee || $callee;
  my $self = shift;
  bless $self, $package;

  if (! defined($pipeline)){
    $pipeline = new Lingua::StanfordCoreNLP::Pipeline(1, 1);
    Processor->pipeline( $pipeline );
  }

  return $self;
}


Patrick



On Fri, Feb 22, 2013 at 3:51 PM, Iturrate, Eduardo <
eduardo.iturr...@nyumc.org> wrote:

>  Hi there.****
>
> ** **
>
> Wondering if you could help out. I am using Lingua::StanfordCoreNLP a
> package that use Inline::Java to create several subclasses. The package
> works fine in a script but when I try to use it in my own package and then
> try to access one of the subclasses I get the message that the subclass
> can’t be found. I think this is due to the timing of when Inline::Java
> reads the __DATA__ section of the Lingua::StanfordCoreNLP file and creates
> the java subclasses but I can’t figure it out. ****
>
> ** **
>
> I posted the following to perlmonks.org:
> http://perlmonks.org/?node_id=1019880  (this has a code example) but
> haven’t gotten a response. Thanks for any time you can devote to this.****
>
> ** **
>
> ** **
>
> --Ed****
>



-- 
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada

Reply via email to