The Java ports are often behind the C++ code, but that looks more like a
stream corruption issue. Are you using a UTF-8 locale at all times,
including when building the sup_gen.bin file?

-- Tino Didriksen


On 27 June 2017 at 23:12, विश्वासो वासुकिजः (Vishvas Vasuki) <
vishvas.vas...@gmail.com> wrote:

> Resending without the attachment (it resulted in a moderation hold).
> Please use https://www.dropbox.com/s/chbugvb1435j08e/sup_gen.bin?dl=0
> instead.
>
> 2017-06-27 13:26 GMT-07:00 विश्वासो वासुकिजः (Vishvas Vasuki) <
> vishvas.vas...@gmail.com>:
>
>> Hi!
>>
>> Compare the following outputs:
>>
>> vvasuki@vvasuki-asus:~$ echo 
>> 'rAma<vargaH:nA><lifgam:puM><viBakwiH:8><vacanam:bahu><level:1>' | 
>> /usr/bin/lt-proc -ct /home/vvasuki/scl/build/morph_bin/sup_gen.bin
>> rAmAH
>> vvasuki@vvasuki-asus:~$ echo 
>> 'rAma<vargaH:nA><lifgam:puM><viBakwiH:8><vacanam:bahu><level:1>' |java -jar 
>> lttoolbox-java-3.2.0/lttoolbox.jar lt-proc /usr/bin/lt-proc -ct 
>> /home/vvasuki/scl/build/morph_bin/sup_gen.bin
>> �↑ᅵ¦ᅳ
>>
>>
>> ​What explains the above difference? The sup_gen.bin file is attached (I
>> don't currently have the source.)​
>>
>>
>> Suppose that within java code (without having to run a system command,
>> which is a overhead), I want the proper output (rAmAH) by using sup_gen.bin
>> on the same input - what java API would I use and how (an illustrative
>> couple of lines of code would help)?
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to