Add missing EOF

This commit is contained in:
夜坂雅 2023-06-10 11:30:56 +08:00
parent ad36e0e1c5
commit 5b3f362722

View file

@ -34,6 +34,7 @@ async def get_word_freqs(texts):
for i in texts:
proc.stdin.write(i.encode("utf-8"))
proc.stdin.write(b"\n")
proc.stdin.write_eof()
freqs = {}
stdout = await proc.stdout.read()