Labels and Entity

Evelyn Bernardo Updated by Evelyn Bernardo

A label is a keyword used to categorize important entities on texts.

See the examples below:

  1. I love soccer, it is a good sport.
  2. My father is a basketball coach.
  3. We played baseball on the last weekend.

On the phrases above, each highlighted word represents different kinds of sport, so we can infer that a good label to represent that group of words is a sport.

Why should I use this?

If it's necessary to give a higher level of detail on the message categorization, you should use this feature. For example, in a chatbot, if you want to send different messages to the user related to the kind of sport he/she likes, the first thing you would do is to identify the message intent, and after that you would like to verify which sport he/she is talking about, and to achieve this would be necessary to use entities and labels.

What is an entity?

An entity is a keyword element that will be marked with a label in a message body.

How can I use this?

When you are adding new samples to the training you must highlight all relevant entities on your training. See below:

  1. First thing you must do is to type the new sentence:

     

  1. After that you have to select the entity that you want to add to your training:

  1. Tap the white button below the phrase:

  1. On the white box that will appear, you must type the correct word that your bot should refer every time it identifies that word on the analyzed phrases. On the example, above we had "NYC" on the original text, but we know what it means, New York, in general, we must identify synonyms on the text and set a default word to each synonym, in this case 'New York'. Next step is to set a label to this word. Tap the button 'add the label' and type a keyword for that label:
  1. Then tap add. The new entity show receives a highlight. (You can add multiple entities on the same training sample).

How did we do?

Create your first bot

Translating

Contact