Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: zip argument #1 must support iteration #2

Open
xiaoshengjun opened this issue Sep 11, 2019 · 1 comment
Open

TypeError: zip argument #1 must support iteration #2

xiaoshengjun opened this issue Sep 11, 2019 · 1 comment

Comments

@xiaoshengjun
Copy link

hi, when I run the code ml2018 'train_reranker', the issue is called. Could you help me find where the problem is?

Loading source sentences
Traceback (most recent call last):
File "/search/odin/liuxiaolong2019/mlconvgec2018-fairseq0.5/software/nbest-reranker/augmenter.py", line 63, in
augment(features, args.source_path, args.input_nbest_path, args.output_nbest_path)
File "/search/odin/liuxiaolong2019/mlconvgec2018-fairseq0.5/software/nbest-reranker/augmenter.py", line 40, in augment
for group, src_sent in zip(input_nbest, src_sents):
TypeError: zip argument #1 must support iteration

@Young1993
Copy link

hi, when I run the code ml2018 'train_reranker', the issue is called. Could you help me find where the problem is?

Loading source sentences
Traceback (most recent call last):
File "/search/odin/liuxiaolong2019/mlconvgec2018-fairseq0.5/software/nbest-reranker/augmenter.py", line 63, in
augment(features, args.source_path, args.input_nbest_path, args.output_nbest_path)
File "/search/odin/liuxiaolong2019/mlconvgec2018-fairseq0.5/software/nbest-reranker/augmenter.py", line 40, in augment
for group, src_sent in zip(input_nbest, src_sents):
TypeError: zip argument #1 must support iteration

I met the same problem, while changing the code
for item in gruop.group
the code is operating right, you can try or debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants