-
Notifications
You must be signed in to change notification settings - Fork 513
Open
Labels
Description
Is it possible to find overlapping/nested entities?
Search for two red balls with dots and the playing cards in an orange bucket
I am new to snips-nlu
so I'm not sure whether it can solve my use case but I'm hoping to transform that imperative into something like:
{
intent: "find",
entities: [
{
text: "two red balls with dots",
type: "object_to_find",
subentities: [
{ value: 2, attribute: "number", text: "two" },
{ value: "red", attribute: "color", text: "red" },
{ value: "ball", attribute: "type", text: "balls" },
{ value: "dotted", attribute: "decoration", text: "with dots" },
]
}, {
text: "playing cards",
type: "object_to_find",
subentities: [
{ value: "cards", attribute: "type", text: "playing cards" },
]
}, {
text: "an orange bucket",
type: "location_filter",
subentities: [
{ value: "orange", attribute: "color", text: "orange" },
{ value: "bucket", attribute: "type", text: "bucket" },
]
}
]
}
I need to distinguish between multiple search terms ("objects") that each have attributes and other search filters (like the "location_filter"). I have used wit.ai
to do this before but I'm wondering whether snips can solve for my use case and where I should look for an example like this or some documentation.