I think there is a slight typo in your command :

statistic.pl --ngram 4 ll4.pm output.txt intput.txt

(the module name should be ll4.pm)

I hope this helps! Let me know if you continue to have any trouble...

Good luck,
Ted

On Wed, Mar 27, 2013 at 9:06 AM, mercevg <merc...@yahoo.es> wrote:
> Ted,
>
> I've received your answer without problem. I'll try to follow up with another 
> email address.
>
> A sample of my 4-grams file:
> procesamiento<>del<>lenguaje<>natural<>9 19 55 22 19 10 9 9 20 16 18 9 9 9 16
> recuperación<>de<>información<>textual<>4 15 287 30 5 15 14 4 25 4 5 14 4 4 4
> estadístico<>del<>lenguaje<>natural<>3 5 55 22 19 3 3 3 20 16 18 3 3 3 16
> aparición<>en<>el<>documento<>2 4 93 95 22 3 2 3 18 6 4 2 3 2 3
>
> Command line:
> statistic.pl --ngram 4 ll.3pm 4-grams-ll.txt 4-grams.txt
>
> Program answer:
> "Measure not defined for 4-grams"
>
> I've got Text-NSP v.1.25.
>
> Thank you.
> Mercè
>
> --- In ngram@yahoogroups.com, Ted Pedersen <tpederse@...> wrote:
>>
>> Merce, I got an email error when responding directly to your yahoo.es
>> account. Could you follow up with another email address or use the
>> group...?
>>
>> Thanks,
>> Ted
>>
>>
>> ---------- Forwarded message ----------
>> From: Ted Pedersen <tpederse@...>
>> Date: Wed, Mar 27, 2013 at 8:29 AM
>> Subject: Re: ll4 giving me trouble with 4-grams
>> To: mercevg <mercevg@...>
>>
>>
>> Hi Merce,
>>
>> Could you send me whatever error output you are getting, plus a small
>> sample of your ngram file?
>>
>> Thanks!
>> Ted
>>
>> On Wed, Mar 27, 2013 at 8:12 AM, mercevg <mercevg@...> wrote:
>> > Hi,
>> >
>> > I would like to know how to calculate with Statistical.pl 4-grams using 
>> > log-likelihood ratio.
>> >
>> > To calculate 3-grams I've run the program as follows:
>> > statistic.pl --ngram 3 tmi3.pm three.ngram.tmi3 three.ngram
>> >
>> > But using log-likelihood ratio it doesn't work.
>> >
>> > Thanks
>> >
>> > Mercè
>> >
>> >
>>
>
>

Reply via email to