Skip to content

Support for Snips NLU data structure #53

@varungujjar

Description

@varungujjar

Managed to work on Snips NLU adapter

{
"entities": {
"device": {
"automatically_extensible": true,
"data": [
{
"synonyms": [
"airconditioner"
],
"value": "airconditioner"
},
{
"synonyms": [
"fan"
],
"value": "fan"
},
{
"synonyms": [
"bulb",
"lights"
],
"value": "light"
}
],
"matching_strictness": 1.0,
"use_synonyms": true
},
"room": {
"automatically_extensible": true,
"data": [
{
"synonyms": [
"bedroom",
"livingroom"
],
"value": "switch"
}
],
"matching_strictness": 1.0,
"use_synonyms": true
},
"snips/datetime": {},
"state": {
"automatically_extensible": true,
"data": [
{
"synonyms": [
"on"
],
"value": "on"
},
{
"synonyms": [
"off"
],
"value": "off"
}
],
"matching_strictness": 1.0,
"use_synonyms": true
}
},
"intents": {
"skill-devices.switchDevice": {
"utterances": [
{
"data": [
{
"text": "turn "
},
{
"entity": "state",
"slot_name": "state",
"text": "on"
},
{
"text": " the "
},
{
"entity": "room",
"slot_name": "room",
"text": "bedroom"
},
{
"text": " "
},
{
"entity": "device",
"slot_name": "device",
"text": "airconditioner"
},
{
"entity": "snips/datetime",
"slot_name": "snips/datetime",
"text": "at the end of the day"
},
{
"text": " please"
}
]
},
{
"data": [
{
"text": "turn "
},
{
"entity": "state",
"slot_name": "state",
"text": "on"
},
{
"text": " the "
},
{
"entity": "room",
"slot_name": "room",
"text": "bedroom"
},
{
"text": " "
},
{
"entity": "device",
"slot_name": "device",
"text": "airconditioner"
},
{
"entity": "snips/datetime",
"slot_name": "snips/datetime",
"text": "tomorrow"
},
{
"text": " please"
}
]
},
{
"data": [
{
"text": "turn "
},
{
"entity": "state",
"slot_name": "state",
"text": "on"
},
{
"text": " the "
},
{
"entity": "room",
"slot_name": "room",
"text": "livingroom"
},
{
"text": " "
},
{
"entity": "device",
"slot_name": "device",
"text": "bulb"
},
{
"entity": "snips/datetime",
"slot_name": "snips/datetime",
"text": "today"
},
{
"text": " please"
}
]
}
]
}
},
"language": "en"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions