line buffering for tokeniser and truecaser

This commit is contained in:
William Waites 2020-02-17 14:29:24 +00:00
parent 4c5e89f075
commit 691717c425
4 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,7 @@ sub process {
print $_;
}
print "\n";
STDOUT->flush;
$sentence++;
}

View File

@ -82,6 +82,7 @@ while(<STDIN>) {
}
print $$MARKUP[$#$MARKUP];
print "\n";
STDOUT->flush
}
# store away xml markup

View File

@ -64,6 +64,7 @@ while(<STDIN>) {
} else {
print &detokenize($_);
}
STDOUT->flush
}

View File

@ -186,6 +186,7 @@ else
{
print &tokenize($_);
}
STDOUT->flush
}
}