[SRILM User List] SRILM command in Matlab

Md. Akmal Haidar akmalcuet00 at yahoo.com
Thu Jun 13 12:10:06 PDT 2013


Thanks Qiru..

But it does not work for me. I compiled the srilm using cygwin.
I reinstalled the srilm again in cygwin...still it does not work.





________________________________
 From: Qiru Zhou <qzhou at ispeech.org>
To: Md. Akmal Haidar <akmalcuet00 at yahoo.com>; srilm-user at speech.sri.com 
Sent: Thursday, June 13, 2013 2:13:21 PM
Subject: Re: [SRILM User List] SRILM command in Matlab
 


Works for me using a MSVC 2010 compiled ngram:

[status,result] =
    system('D:\SLTools\SRI\srilm1.7\bin\x64\Release\ngram.exe -lm
    D:\...\eg.mad.arpa -ppl D:\...\en-us.trans.txt -debug 2'

>> result
reading 100001 1-grams reading 864169 2-grams reading 1739458
    3-grams
...
    p( am | <unk> ...)     = [1gram] 0.0033243 [ -2.4783 ]
    p( interested | am ...)     = [2gram] 0.000292752 [ -3.5335 ]
    p( in | interested ...)     = [3gram] 0.454779 [ -0.3422 ]
    p( learning | in ...)     = [3gram] 0.00223203 [ -2.6513 ]
    p( more | learning ...)     = [2gram] 0.00943844 [ -2.0251 ]
    p( <unk> | more ...)     = [OOV] 0 [ -1.#INF ]
    p( restaurant | <unk> ...)     = [1gram] 0.000581166 [
    -3.2357 ]
    p( is | restaurant ...)     = [2gram] 0.00385035 [ -2.4145 ]
    p( on | is ...)     = [3gram] 0.0063841 [ -2.1949 ]
    p( the | on ...)     = [3gram] 0.192486 [ -0.7156 ]
    p( fifth | the ...)     = [3gram] 0.000952138 [ -3.0213 ]
    p( floor | fifth ...)     = [2gram] 0.000440758 [ -3.3558 ]
    p( </s> | floor ...)     = [3gram] 0.304299 [ -0.5167 ]
...


On 6/13/2013 12:21 PM, Md. Akmal Haidar wrote:

Hi Qiru,
>
>I tried it. It didn't work. The result shows ' '.
>
>
>Akmal
>
>
>
>
>________________________________
> From: Qiru Zhou <qzhou at ispeech.org>
>To: Md. Akmal Haidar <akmalcuet00 at yahoo.com> 
>Sent: Thursday, June 13, 2013 10:42:26 AM
>Subject: Re: [SRILM User List] SRILM command in Matlab
> 
>
>
>Try:
> [status,result] = system('c:\cygwin\srilm\bin\cygwin\ngram -lm LM -ppl test.txt -debug 2')
>
>-- Qiru
>
>
>On 6/12/2013 7:02 PM, Md. Akmal Haidar wrote:
>
>Hi,
>>
>>
>>Does anyone know how to execute srilm command in Matlab?
>>
>>
>>For example, I need to compute the perplexity of an LM. I have to run the following command in Matlab
>>
>>c:\cygwin\srilm\bin\cygwin\ngram -lm LM -ppl test.txt -debug 2
>>
>>
>>is there any way to run this in Matlab?
>>
>>
>>Thanks
>>Best Regards
>>Akmal
>>
>>
>>_______________________________________________
SRILM-User site list SRILM-User at speech.sri.com http://www.speech.sri.com/mailman/listinfo/srilm-user
>
>-- 
QIRU ZHOU | CHIEF SCIENTIST | iSPEECH, INC. | T 917.338.7723  | qzhou at iSpeech.org | www.iSpeech.org
>
>

-- 
QIRU ZHOU | CHIEF SCIENTIST | iSPEECH, INC. | T 917.338.7723  | qzhou at iSpeech.org | www.iSpeech.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20130613/7cd813c2/attachment.html>


More information about the SRILM-User mailing list