The KenLM `query` utility has changed in how it pipes to stdout. I'm 
using Python's subprocess.Popen() and stdin.write() with 
stdout.readline(). In Release 1, the output was unbuffered and piping 
line-by-line worked. In the newest version (RC-3), piping hangs at 
stdout.readline() as though `query` is buffering the output.

Is it possible to add a command line switch to disable output buffers, 
similar to what we added to the tokenizer.perl and detokenizer.perl 
scripts (-b)?
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to