Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
more useful options
 
PerlMonks  

Re: Exporter Problem

by Anonymous Monk
on Feb 17, 2013 at 14:08 UTC ( #1019141=note: print w/ replies, xml ) Need Help??


in reply to Exporter Problem

Try a singleton, try

our $pipeline; sub pipeline { $pipeline ||= new Lingua::StanfordCoreNLP::Pipeline(1, 1); $pipeline; } sub process_text { my ($self,$text) = @_; $self->pipeline->process( $text ); }

If things go wrong try Dumper-ing $MyModule::pipeline


Comment on Re: Exporter Problem
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2014-04-18 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls