nerdexam
Amazon

AXS-C01 · Question #54

The following JSON defines a custom slot type named MEDIA_TYPE with two values: { "types": [ { "name": "MEDIA_TYPE", "values": [ { "id": "SONG", "name": { "value": "song", "synonyms"…

The correct answer is B. album. Even though the user used the word";recor"; the canonical slot value contains the more general";albu"; value because "record" is defined as a synonym. ALBUMS is returned as the

Skill Design

Question

The following JSON defines a custom slot type named MEDIA_TYPE with two values:

{ "types": [ { "name": "MEDIA_TYPE", "values": [ { "id": "SONG", "name": { "value": "song", "synonyms": ["tune","single","track"] } }, { "id": "ALBUMS", "name": { "value": "album", "synonyms": ["record","lp","cd"] } } ] } ] } Assuming that when a user says "change the record," an intent is matched, and the MEDIA_TYPE slot is populated, identify the canonical value that will be returned.

Options

  • AALBUMS
  • Balbum
  • Crecord
  • Dsong

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    85% (23)
  • C
    4% (1)
  • D
    7% (2)

Explanation

Even though the user used the word";recor"; the canonical slot value contains the more general";albu"; value because "record" is defined as a synonym. ALBUMS is returned as the

Topics

#custom slot types#canonical values#slot synonyms#slot resolution

Community Discussion

No community discussion yet for this question.

Full AXS-C01 Practice