I would suggest adding a configure() method to your Map class and then load the parser and save it in a class object.
On Tue, Apr 20, 2010 at 4:16 AM, Rishav <[email protected]> wrote: > Hello > > I am trying to pass an object of type LexicalizedParser (which is from an > imported jar file stanford-parser) from the main method to the Mapper Class. > This is to load the trained model first and then apply on every file offset > in the map function in the Mapper Class. > Could you tell me the best way to pass an object of any type to the Mapper? > > Thanking you > Rishav > > > -- > Rishav Bhowmick > Computer Science -2010 > Carnegie Mellon University > Tel: +974-561-4371 > e-mail: [email protected] > >
