ictnlp / ddrs-nat Goto Github PK
View Code? Open in Web Editor NEWCode for NAACL2022 main conference paper "One Reference Is Not Enough: Diverse Distillation with Reference Selection for Non-Autoregressive Translation"
License: MIT License
Code for NAACL2022 main conference paper "One Reference Is Not Enough: Diverse Distillation with Reference Selection for Non-Autoregressive Translation"
License: MIT License
Thank you for your work!
When running the shell in **Inference ** Step 1: Decode the test set with argmax decoding, I faced the error as follows:
Traceback (most recent call last):
File "generate.py", line 383, in
cli_main()
File "generate.py", line 379, in cli_main
main(args)
File "generate.py", line 41, in main
return main(args, sys.stdout)
File "generate.py", line 191, in main
hypos = task.inference_step(
File "/data1/workspace/DDRS-NAT/fairseq/tasks/fairseq_task.py", line 433, in inference_step
return generator.generate(
File "/root/anaconda3/envs/nmt/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/data1/workspace/DDRS-NAT/fairseq/iterative_refinement_generator.py", line 229, in generate
log_probs, decoder_out, , = model.forward_decoder(
ValueError: too many values to unpack (expected 2)
and
I checked this line, found that
log_probs, decoder_out = model.forward_decoder( prev_decoder_out, encoder_out, **decoder_options )
the log_probs is missing.
How can I get the right results?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.