Do you have the latest charlifter from sourceforge (0.06)?

Did you do a "make; sudo make install" to install sf.pl?

The line you're looking at is line 185 in sf.pl.in  (before building),
not sf.pl.

kps


On Sun, Mar 9, 2014 at 12:56 AM, Alex Aruj <alex.a...@gmail.com> wrote:
> I waited several minutes on a couple different tries before hitting ctrl + c
> to quite. I will look at it again tomorrow and if no success, will try a
> different approach.
>
>
> On 8 March 2014 22:41, Kevin Scannell <ksca...@gmail.com> wrote:
>>
>> On Sun, Mar 9, 2014 at 12:01 AM, Alex Aruj <alex.a...@gmail.com> 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
>
>
>
>
> --
> Alex

------------------------------------------------------------------------------
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
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to