Annotating text for intent recognition
SA, which we mentioned before, is only one type of annotation of textual data. It is useful for assessing whether the text is positive or negative. However, instead of annotating text with a sentiment, we can annotate the text with – for example – the intent and train an ML model to recognize intent from other text passages. The table in Figure 3.16 provides such an annotation, based on the same review data as before:
Id |
Score |
Summary |
Text |
Intent |
1 |
5 |
Good Quality Dog Food |
I have bought several of the Vitality canned dog food products and have found them all to be of good quality. The product looks more like a stew than a processed meat and it smells better. My Labrador is finicky... |