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

ret_sentences.append(' '.join([self.model.vocab.index2word[idx] for idx in d[0]]).replace('EOS','')) KeyError: 9.5367431640625e-07 #9

Open
27182812 opened this issue Jan 7, 2022 · 3 comments

Comments

@27182812
Copy link

27182812 commented Jan 7, 2022

image

When I run the code for my dataset, I met this error. Do you know what happened?

@Dragonjasmine
Copy link

maybe the problem it's not here , i suggest find other formula like in prev_k = best_scores_id / num_words change / to //,maybe can solve your problem

@123321yjh
Copy link

MOEL-masterlutils beam_omt_experts.py", line 108, in get_hypothesisk = selfprev ks[il[k]IndexError: tensors used as indices must be long, int, byte or bool tensors
image
Execuse me, When I run the code, I met this error. Do you know what happened?

@Dragonjasmine
Copy link

Dragonjasmine commented Dec 13, 2023 via email

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

3 participants