Skip to content

Commit

Permalink
add debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
DomAmato committed Mar 13, 2020
1 parent 99d6b0d commit c4d5265
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rasa/core/policies/fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ def predict_action_probabilities(
tracker.latest_action_name == self.fallback_action_name
and tracker.latest_action_name != ACTION_LISTEN_NAME
):
logger.debug(
"Predicted 'action_listen' after fallback action '{}'".format(
self.fallback_action_name
)
)
result = self._default_predictions(domain)
idx = domain.index_for_action(ACTION_LISTEN_NAME)
result[idx] = 1.0
Expand Down

0 comments on commit c4d5265

Please sign in to comment.