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 recognition problem #777

Open
satnam2012 opened this issue Apr 4, 2019 · 1 comment
Open

slot recognition problem #777

satnam2012 opened this issue Apr 4, 2019 · 1 comment
Labels

Comments

@satnam2012
Copy link

Hi,

I'm looking into Snips API and I have tried to get my hands on with the sample data set and simple queries. I have found issues with how the entities are being recognized. For example, I used
dataset - https://github.com/snipsco/snips-nlu/blob/master/snips_nlu_samples/sample_dataset.json
code snippet - https://snips-nlu.readthedocs.io/en/latest/quickstart.html

For the text 1: "turn on the lights in basement"
Response is -
{
"input": "turn on the lights in basement",
"slots": [
{
"slotName": "room",
"range": {
"start": 22,
"end": 30
},
"rawValue": "basement",
"value": {
"kind": "Custom",
"value": "basement"
},
"entity": "room"

}
],
"intent": {
"intentName": "sampleTurnOnLight",
"probability": 1.0
}
}

For text 2 - "turn on the basement lights"
Response is -
{
"input": "turn on the basement lights",
"slots": [],
"intent": {
"intentName": "sampleTurnOnLight",
"probability": 0.7618103188247944
}
}

Issue: For the text 2, the slot extraction is not happening as expected (entity:room). Could you elaborate the root cause?

Thanks!

@adrienball
Copy link
Contributor

Hi @satnam2012 ,
The sample dataset which is mentioned in the tutorial and that you used is very small and its purpose is more to describe the data format and how the main parsing APIs work.
If you want to improve the slot filling, you should add more utterances in the dataset.
The Snips NLU engine is based on machine learning so the more data it receives, the better it should be at parsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants