lvapeab / m4loc

Automatically exported from code.google.com/p/m4loc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Truecasing scripts in Moses v1.0 buffer input/output without flushing #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Temporarily fixed with revision fe16f1963e35 - forked truecase.perl & 
detruecase.perl

Original comment by Achi...@gmail.com on 17 Sep 2013 at 8:16