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

Created on 20 Sep 2017  ·  6Comments  ·  Source: tensorflow/nmt

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

All 6 comments

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

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

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

这个问题有解决吗?

@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.

@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?

Was this page helpful?
0 / 5 - 0 ratings