possibly a bug in PullRequest #139 (N-best candidates)?
See original GitHub issueHi @sjarmero,
After your pull request #139 has been merged, I’ve got an error at https://github.com/joeynmt/joeynmt/blob/eb29133ec8662c9d9520d6a72b8888d84a90cc80/joeynmt/prediction.py#L114
It should look like this, maybe?
assert len(sort_reverse_index) == batch.nseqs
and a small problem here, too.
because now you use append
, not extend
as before, valid_attention_scores
wil become non-empty even if attention_scores
is None, and it unexpectedly triggers this if-block:
thank you for your effort to include the nbest list!
@juliakreutzer, FYI
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
plot throws ambiguity error · Issue #139 · MakieOrg/Makie.jl · GitHub
julia> using Makie julia> plot(1.0:5,randn(5)) ERROR: MethodError: AbstractPlotting.plot!(::Combined{Any,Tuple{StepRangeLen{Float64,Base.
Read more >Error Codes | Yarn - Package Manager
A list of Yarn's error codes with detailed explanations.
Read more >Identifying Redundancies in Fork-based Development
Although one pull request mentioned the bug number, it is hard to tell whether these two pull requests are solving the same problem...
Read more >Duplicate Pull Request Detection: When Time Matters - Xin Xia
Ranking approaches: [3, 6, 7, 13, 14, 21, 28, 31–34, 39,. 42],they use a bug report as input and output a ranked list...
Read more >Does code quality affect pull request acceptance? An ...
To the best of our knowledge, no studies have investigated if quality flaws such as code smells, anti-patterns, or coding style violations affecting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @aitorme That line has been corrected in Pull Request https://github.com/joeynmt/joeynmt/pull/145, which has not been merged yet
Fine with me! I’ll do that.