You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, I plan to do a machine translation project with this seq2seq module. Before that, I just did a simple test and got a very bad result. I don't know where goes wrong. Pls help me...
Here's the process:
for seq_index in range(6):
predictions = model.predict(x_encoder_input_data[seq_index:seq_index+1])
predicted_list=[]
for prediction_vector in predictions:
for pred in prediction_vector:
next_token = np.argmax(pred)
predicted_list.append(next_token)
print('-')
print('Input sentence:', X[seq_index])
print('Decoded sentence:', predicted_list)
print('Target sentence:', y[seq_index])
Actually, I plan to do a machine translation project with this seq2seq module. Before that, I just did a simple test and got a very bad result. I don't know where goes wrong. Pls help me...
Here's the process:
#1. traning set
#2. building&training model
#3. the partial losses
#4. predicting
#5. the predicting results:
The text was updated successfully, but these errors were encountered: