On Sun, Mar 9, 2014 at 12:01 AM, Alex Aruj <[email protected]> wrote: > Hi, this is an update on my adventures with charlifter. > > I finally found a few moments to dive into charlifter (on Mac OSX, since I > have not committed to working on my Windows machine just yet). I have a > Spanish corpus and a language package charlifter-es-0.01 but I can't yet try > them out together. B/c I downloaded the language pack, I figure I can skip > training, however, I can't do anything now since I am at a roadblock. What I > am getting stuck on is the installation process of my pre-trained language > package downloaded from Lingala NLP on sourceforge. > > I guess it is prompting me to enter in "$data", or sf.pl cannot find what > it needs. Do I need es-probs.txt or the entire charlifter-es-0.01 package to > be saved in a sf.pl-accessible location? I did not change any paths in the > makefile. > > Typing in "make install" within my language package directory at Terminal > gives this... > > sf.pl -m -l es > Reading in plain text hashes... > > which in sf.pl is... > > line 185 print "Reading in plain text hashes...\n"; $|++; > my $data = do { > if( open my $fh, '<:utf8', "$lang_arg-probs.txt" ) { local $/; <$fh> } > else { undef } > }; > eval $data; >
How long are you waiting? You should see this: charlifter-es$ make sf.pl -m -l es Reading in plain text hashes... Saving storable hashes to disk... charlifter-es$ It only takes about 15 seconds to build on my machine. Then $ sudo make install Kevin ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
