atpaino / deep-text-corrector

Deep learning models trained to correct input errors in short, message-like text
Apache License 2.0
1.23k stars 266 forks source link

Decoding is repeating the same word #9

Open johnnogent opened 7 years ago

johnnogent commented 7 years ago

Hello, I have an issue

decoded = decode_sentence(sess, model, data_reader, "you must have girlfriend", corrective_tokens=corrective_tokens) Input: you must have girlfriend Output: you you you you you you you you you you

Any one has an idea please? Many thanks

johnnogent commented 7 years ago

The issue is from correct_text.py, the test tf.gfile.Exists(ckpt.model_checkpoint_path) is failing. I am in Python 2.7 , tensorflow 0.12 on ubuntu

jinjiaji512 commented 7 years ago

i have the same issue: Input: so they travel around from place to place and preach ? Output: from from from from from from from from from from from from from from from

qinbill commented 7 years ago

Problem fixed. Please see my fork.

longzaitianguo commented 6 years ago

Still have the same issue. How can I solve this kind of repeating problem? @qinbill @johnnogent

sg1112 commented 6 years ago

Hi, I still have the same issue, is there a way to resolve it.

akmalkadi commented 6 years ago

@qinbill i have the same problem. I am using your fork

qinbill commented 6 years ago

Please use the older version of Tensorflow.

akmalkady writes:

@qinbill i have the same problem. I am using your fork

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

--

Regards, Jianbin Qin

-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

akmalkadi commented 6 years ago

@qinbill thanks for your answer. I installed version 0.12.1 and I did the training again. I got the same problem.

I am using the default which is 3000. is that the reason why i am getting repeated words?

dharm033075 commented 6 years ago

I am having same repeating words problem while testing, Please help to resolve it. I am using tensorflow 0.12. Thanks