RASA NLU return list of intents in order of confidence

rasa-nlu

(Raymond) #1

Hi,

I was wondering if there was a way to get a list of the most likely matching intents by confidence using the RASA NLU python api?

Thanks, Raymond


(Akela Drissner) #2

the /parse endpoint should return that no?


(Raymond) #3

Is that for the HTTP server? I was using the python API with Agent


(cuong) #4

If you are using rasa_core agent, I think you can get intent_ranking by following code: agent.tracker_store.get_or_create_tracker(sender_id).current_state()


(Raymond) #5

Ohh that helps a lot, thank you!


(cuong) #6

you welcome :slight_smile: