nmt icon indicating copy to clipboard operation
nmt copied to clipboard

Failed precondition: HashTable has different value for same key. Key the has 9 and trying to add value 25

Open CuZn13 opened this issue 7 years ago • 6 comments

What is the cause of this problem? I am training Chinese to English

CuZn13 avatar Sep 20 '17 07:09 CuZn13

You may have a word that exits in the vocabulary file more than once.

chaoyu0804 avatar Sep 21 '17 08:09 chaoyu0804

It is not the case in my problem. I have checked the vocabulary. Is there anything else that may have caused this?

ghost avatar Oct 20 '17 11:10 ghost

@ssokhey Same here. Have you found what is causing the issue? This is driving me crazy.

tslater avatar Apr 23 '18 02:04 tslater

这个问题有解决吗?

wxs19920926 avatar Jun 04 '18 02:06 wxs19920926

@tslater I forgot to add the following at the start of vocab files for both languages.

<unk>
<s>
</s>

It worked for me after this.

ghost avatar Jun 07 '18 10:06 ghost

@tslater I forgot to add the following at the start of vocab files for both languages.

<unk>
<s>
</s>

It worked for me after this.

Why we have to add these three lines?

XinDongol avatar Sep 20 '19 15:09 XinDongol