THUNLP-MT / THUMT

An open-source neural machine translation toolkit developed by Tsinghua Natural Language Processing Group
BSD 3-Clause "New" or "Revised" License
703 stars 197 forks source link

Decoding output format #54

Closed sandipjedhe closed 5 years ago

sandipjedhe commented 5 years ago

I was run decoding command as python thumt/bin/translator.py --models transformer --input newstest2015.tc.32k.de --output newstest2015.trans --vocabulary vocab.32k.de.txt vocab.32k.en.txt --checkpoints /home/shweta/sandip/thumt/THUMT/train/eval/model.ckpt-4000 --parameters=device_list=[0]

Here, one thing I am not understand why we create output file as a .trans extension. And how we read/open that output file. Can we open file in Text Editor? I have use NVIDIA-SMI 384.130 4gb GPU.

Glaceon31 commented 5 years ago

You can simply make the file .txt extension and open/read it in text form. You can also open it with Text Editor regardless of the extension type.

sandipjedhe commented 5 years ago

Thanks Glaceon31.