Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slot synonyms are not used #1

Open
NullEnt1ty opened this issue Jul 27, 2020 · 0 comments
Open

Slot synonyms are not used #1

NullEnt1ty opened this issue Jul 27, 2020 · 0 comments

Comments

@NullEnt1ty
Copy link

NullEnt1ty commented Jul 27, 2020

Snips NLU does not use the synonyms that I defined for my slots.

Example:

Let's assume I have the following room slots:

(den | playroom | downstairs):den
(bath | bathroom):bathroom

This will translate to the following entity in dataset.yaml:

type: entity
name: "room"
values:
  - "den"
  - "playroom"
  - "downstairs"
  - "bath"
  - "bathroom"

Snips NLU recognizes the room entity, but when I say "playroom" it outputs "playroom" instead of "den". The good news is that Snips NLU does support synonyms 🎉

In this case, the entity needs to look like this (untested):

type: entity
name: "room"
values:
  - ["den", "playroom", "downstairs"]
  - ["bath", "bathroom"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant