Introduction
Let's say you're working with text data and your objective is to build a model that checks whether a sentence is grammatically correct. Consider the following sentence: "words? while sequence be this solved of can the ignoring". The question didn't make sense, right? Well, how about the following? "Can this be solved while ignoring the sequence of words?"
Suddenly, the text makes complete sense. What do we acknowledge, then, about working with text data? That sequence matters.
In the task of assessing whether a given sentence is grammatically correct, the sequence is important. Sequence-agnostic models would fail terribly at the task. The nature of the task requires you to analyze the sequence of the terms.
In the previous chapter, we worked with text data, discussing ideas around representation and creating our own word vectors. Text and natural language data have another important characteristic – they have a sequence...