Currie32 / Spell-Checker

A seq2seq model that can correct spelling mistakes.
213 stars 93 forks source link

change to: #17

Open Surya20794 opened 4 years ago

Surya20794 commented 4 years ago

change to: initial_state = dec_cell.zero_state(batch_size=batch_size,dtype=tf.float32).clone(cell_state=enc_state)

also

inferencelogits, ,_ = tf.contrib.seq2seq.dynamic_decode(inference_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)

and

traininglogits, ,_ = tf.contrib.seq2seq.dynamic_decode(training_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)

Originally posted by @Sofwath in https://github.com/Currie32/Spell-Checker/issues/3#issuecomment-405510170

Surya20794 commented 4 years ago

training_logits= tf.contrib.seq2seq.dynamic_decode(training_decoder,

NameError: global name 'training_decoder' is not defined