tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.35k stars 1.96k forks source link

InvalidArgumentError (see above for traceback): Invalid content in /dev/shm/wqy/model_zhzh/vocab.en: empty line found at position 4279. #364

Open qianyuwang opened 5 years ago

qianyuwang commented 5 years ago

I have this problem when trying to use a shared vocab. The vocab contains Chinese and English characters. And both my input and target contain Chinese characters. Does anyone know how to solve this problem?

image image

4pal commented 5 years ago

ok ,in question answer pairs there should not be an empty line as the numbers of questions should be the same as the number of answers.nmt system is just a query answer system presented as a language translation system i.e what would a banana mean in french---given a banana and team what do we expect in vietnamese given these conditions.Kindly match those pairs. screenshot from 2018-07-24 19-02-20 screenshot from 2018-07-24 19-02-36