I just found that detokenizer.perl has a variant of the proposal
below on lines 8 & 9.
# This added by Herve Saint-Amand for
compatibility with translate.cgi
$|++;
For consistency between the two
scripts, I propose adding a command-line option to both that disables
buffering if the user wishes, and a line in the usage help.
while
(@ARGV) {
$_ = shift;
/^-b$/ && ($| = 1, next);
if ($HELP) {
print "
-b ... disable Perl buffering.n";
On Thu, 05 Jan 2012 20:28:01 +0700,
Tom Hoar wrote:
The current tokenizer.perl and detokenizer.perl
script buffer the print output. Adding this line to the beginning of
each script:
$| = 1;
disables buffering and forces Perl to flush
each line. Can this be added?
Thanks,
Tom _______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support