Can anyone explain this for me please :(

20201026_130022

Hi @faiza_conte! have you read the description of each of the slot mappings in the docs yet?

if a user inputs “My name is Tanja” and it is recognized as “My name is Tanja”, here is how the two will extract the values:

from_entity: picks the entity only, if available. In this case, extracts Tanja

from_text: picks the entire text. In this case, extracts My name is Tanja.

It’s common to use multiple slot mappings, as they are processed in order. If you include both from_entity and from_text in that order, if the entity is correctly extracted, then it will process the above slot mappings in order and therefore pull out just Tanja.

However, if the model did not tag the entity correctly, here is what those slot mappings will do:

from_entity: picks the entity only, if available. In this case, extracts nothing.

from_text: picks the entire text. In this case, extracts My name is Tanja.

Since they process in order, since from_entity didn’t pick up anything, from_text will win and the value in the requested slot will be filled with My name is Tanja.

hope that helps!

1 Like