O'Reilly logo

Hands-On Natural Language Processing with Python by Rajalingappaa Shanmugamani, Rajesh Arumugam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

News summarization using GRU

In this example, we will look into summarizing news articles using LSTMs. The data for this example was taken from CNN. The complete Python Notebook for this example can be found at Chapter08/02_example.ipynb, in the book's code repository. In addition to the basic architecture described previously, we will use an additional attention layer. It has been determined from text summarization research work that a  model with an attention mechanism can perform better than a model without one.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required