Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019141]
help
Chatterbox?
Happy-the-monk hands LanX a treat of ambidextrosis.
[Discipulus]: my son was used to say being left-handed on both hands..
[erix]: ambysinistral ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2018-02-19 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (264 votes). Check out past polls.

    Notices?