Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The general idea is to classify texts that the model has never seen before, or in other words, allow us to assign an appropriate label to a piece of text without having received any training examples before. This approach is also called zero-shot learning.

...

  • Classes or also called labels, between which to discriminate (classify) the text, e.g.

    Status
    colourRed
    titleNEGATIVE
    Status
    colourGreen
    titlePOSITIVE

  • Patterns, also known as label descriptors, allow the semantic matching between the analysed text and the different labels, e.g. This text is {}

 

Input: The product has no issues but the packaging causes so much extra to squirt out and you can't stop it. For how expensive it is it's such a waste.

Result:

Status
colourBlue
titleTHIS TEXT IS NEGATIVE

...