Hi Lakshya,

Thanks for clarification. Could you please share the code snipped, how you
are passing "nbest" as integer.




On Thu, Apr 17, 2014 at 9:26 AM, Lakshya <eleksh...@gmail.com> wrote:

>
> The error is because of "nbest" is not a boolean , but it is an integer
> type. So pass integer parameter.
>
>
> Regards
> Lakshya
>
>
>
> ---------- Forwarded message ----------
> From: Barry Haddow <bhad...@staffmail.ed.ac.uk>
> Date: Thu, Apr 17, 2014 at 12:43 AM
> Subject: Re: [Moses-support] Moses server with -n-best-list option
> To: Rajnath Patel <patelrajn...@gmail.com>
> Cc: moses-support@mit.edu
>
>
> HI Raj
>
> Not sure, what does the server log say? Try logging to a file, rather than
> /dev/null.
>
> cheers - Barry
>
>
> On 16/04/14 18:25, Rajnath Patel wrote:
>  Hi Barry,
>
> Thanks for quick reply. As you suggested now I am requesting with
> "nbest=true" as - "mosesParams.put("nbest", "true");". Code is attached
> here with. Now its throwing Exception-
>
> ------
> Exception in thread "main" org.apache.xmlrpc.XmlRpcException: Unexpected
> error executing code for particular method, detected by Xmlrpc-c method
> registry code.  Method did not fail; rather, it did not complete at all.
> Not integer type.  See type() method
>     at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:197)
>     at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
>     at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>     at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>     at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>     at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>     at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>     at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>     at mosesclient.RequestMosesServer.main(RequestMosesServer.java:47)
> ------
>
> Server is running with the command-
> ./mosesserver -f /home/raj/anuvad/engSource/eng-hindi/model/moses.ini
> -n-best-list nbest.txt 10 --server-port 8185 --server-log /dev/null 2>
> err8185.log &
>
> Please have a look at java code also and suggest. What Should I do?? Using
> moses v2.1.
>
>
> On Wed, Apr 16, 2014 at 8:55 PM, Barry Haddow 
> <bhad...@staffmail.ed.ac.uk>wrote:
> Hi Raj
>
> You need to specify nbest=true in the request you send to moses server.
> There was a thread last week on this, and I think
> nbest lists are working,
>
> cheers - Barry
>
>
>
> On 16/04/14 15:33, Rajnath Patel wrote:
>
>>  Hi,
>>
>> We are using mosesserver for our translation system. We are using java API
>> given with the decoder, and its working fine. We want multiple
>> translations for same text. As in one moses support conversation It was
>> responded in Sept 2012, that mosesserver do not support -n-best-list
>> option. Is this feature available in current Version?
>>
>> The command line option for server, we are using-
>> $mosesserver -f moses.ini -n-best-list nbest.txt 10 --server-port 8081
>> --server-log /dev/null
>>
>> It is still responding with single out put and no file(nbest.txt) is
>> created so for. Am I doing something wrong? Please suggest.
>>
>> --
>> Thanks & Regards:
>> Raj Nath Patel
>>
>> --
>> Regards:
>> राज नाथ पटेल/Raj Nath Patel
>> KBCS dept.
>> CDAC Mumbai.
>>
>>
>>  _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>



-- 
Regards:
राज नाथ पटेल/Raj Nath Patel
KBCS dept.
CDAC Mumbai.
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to