Recurrent Neural Networks (RNNs)
RNNs are a class of neural networks that are built on the concept of sequential memory. Unlike in traditional neural networks, an RNN predicts the results in sequential data. Currently, an RNN is the most robust and powerful technique available for processing sequential data.
If you have access to a smartphone that has Google Assistant, try opening it and asking the question: "When was the United Nations formed?". The answer is displayed in the following screenshot:
![](https://static.packt-cdn.com/products/9781838555078/graphics/C13314_09_02.jpg)
Figure 9.2: Google Assistant's output
Now ask a second question, "Why was it formed?", as follows:
![](https://static.packt-cdn.com/products/9781838555078/graphics/C13314_09_03.jpg)
Figure 9.3: Google Assistant's contextual output
Now ask a third question, "Where are its headquarters?", and you should get the following answer:
![](https://static.packt-cdn.com/products/9781838555078/graphics/C13314_09_04.jpg)
Figure 9.4: Google Assistant's output
One interesting thing to note here is that we only mentioned "United Nations" in the first question. In the second and third question, we simply asked the assistant why it was formed and where the headquarters were, respectively...