Comprehensive Guide to Text Summarization using Deep Learning in Python

Referring to the great article on the link below

I was successfully able to run the entire code set on the problem I am working on.

when I run apply the code to my problem, I get the following output for the code as follows.

Code:
for i in range(len(x_val)):
print(“Review:”,seq2text(x_val[i]))
print(“Original summary:”,seq2summary(y_val[i]))
print(“Predicted summary:”,decode_sequence(x_val[i].reshape(1,max_text_len)))
print("\n")

Output example:
Review: please serial number issue truck
Original summary: over the truck and found the and forward not working with good and the issues is picked up new parts from the shop returned
Predicted summary: located truck and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and

How do I fix the output to get a better result. Any help would be highly appreciated. Thanks.

© Copyright 2013-2019 Analytics Vidhya