"vscode:/vscode.git/clone" did not exist on "72efb427189c1ed9419366488b842ae8e0d2bfd3"
Commit 4ce453b1 authored by Sergey Edunov's avatar Sergey Edunov Committed by Myle Ott
Browse files

Sampling doesn't work with interactive

parent a04c4cf4
......@@ -41,7 +41,7 @@ def main(args):
translator = SequenceGenerator(
models, beam_size=args.beam, stop_early=(not args.no_early_stop),
normalize_scores=(not args.unnormalized), len_penalty=args.lenpen,
unk_penalty=args.unkpen)
unk_penalty=args.unkpen, sampling=args.sampling)
if use_cuda:
translator.cuda()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment