The goal of the task is to create a prediction model. When entering a text into the model, the code will predict what the next word will be.
Examples of this are seen in regular daily activities. Such prediction algorithms are seen when typing on your phone or even when doing a simple Google search.