Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Fairseq
Commits
4ce453b1
"vscode:/vscode.git/clone" did not exist on "72efb427189c1ed9419366488b842ae8e0d2bfd3"
Commit
4ce453b1
authored
May 10, 2018
by
Sergey Edunov
Committed by
Myle Ott
Jun 15, 2018
Browse files
Sampling doesn't work with interactive
parent
a04c4cf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interactive.py
interactive.py
+1
-1
No files found.
interactive.py
View file @
4ce453b1
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment