Getting intent probabilities


(Shruti) #1

HI,

While running the bot interactively, I do get to probabilities for actions like-

         0                           action_listen    0.00
         1                          action_restart    0.00
         2                 action_default_fallback    0.00
         3                             utter_greet    0.00
         4                          utter_cheer_up    0.00
         5                     utter_did_that_help    0.00
         6                             utter_happy    0.00
         7                           utter_goodbye    0.00
         8                    utter_achievement_up    1.00
         9                  utter_achievement_down    0.05
        10                  utter_achievement_same    0.04

But how do I get the same for intents? In one of the questions asked, I saw someone show output like

{‘intent’: {‘name’: ‘DepositEnquiryForAgency’, ‘confidence’: 0.9075979430989889}, ‘entities’: [], ‘intent_ranking’: [{‘name’: ‘DepositEnquiryForAgency’, ‘confidence’:  **0.9075979430989889** }, {‘name’: ‘goodbye’, ‘confidence’: 0.062111495788272415}, {‘name’: ‘greet’, ‘confidence’: 0.030290561112738677}], ‘text’: ‘jhfdkjsh’}

How can I get output in this format? What command to run?

Thank you, Shruti


(Akela Drissner) #2

for interactive learning? that’s not possible, but if you run core in --debug mode then you can get the probabilites