The truecase.perl and detruecase.perl scripts in Moses v1.0 buffer input and/or
output and when integrated with pipes using the open2 function hang. Possible
fixes:
1. Use IPC::Run to interface with these scripts, similar to how the Moses
tokenizers/detokenizers are used in wrap_tokenizer.perl/wrap_detokenizer.perl
2. Flush buffers in truecase.perl and detruecase.perl. This can be achieved by
adding the line
$|++;
to the scripts
Original issue reported on code.google.com by Achi...@gmail.com on 11 Sep 2013 at 7:29
Original issue reported on code.google.com by
Achi...@gmail.com
on 11 Sep 2013 at 7:29