ProjectAlice icon indicating copy to clipboard operation
ProjectAlice copied to clipboard

Slots missing confidenceScore

Open hipitihop opened this issue 4 years ago • 3 comments

Original Snips implementation would include a confidenceScore slot property. This is missing in Alice.

Version: 1.0.0-a6

Alice

"slots":[
	{"rawValue":"office",
	 "value":{"kind":"Custom","value":"office"},
	 "alternatives":[],
	 "range":{"start":16,"end":22},
	 "entity":"location",
	 "slotName":"location"}
]

Snips

"slots":[
	{"rawValue":"office",
	 "value":{"kind":"Custom","value":"office"},
	 "alternatives":[],
	 "range":{"start":16,"end":22},
	 "entity":"location",
	 "slotName":"location",
	 "confidenceScore":1
	}
]

hipitihop avatar Mar 15 '20 03:03 hipitihop

Hmmm, but we are using snips-nlu though... Will have a check for this

Psychokiller1888 avatar Mar 15 '20 05:03 Psychokiller1888

The Slots confidenceScore are in payload. session.payload['intent']['confidenceScore']

poulsp avatar Mar 20 '20 15:03 poulsp

@poulsp That is the intent confidence score, as opposed to slot confidence score. i.e. there can be high confidence on the intent e.g. 0.96 but one of the slots within the utterance, may only be 0.35

hipitihop avatar Mar 23 '20 09:03 hipitihop