Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
amn41 committed Apr 23, 2018
1 parent ac6f3b9 commit 1a3e30a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rasa_core/policies/fallback.py
Expand Up @@ -33,6 +33,18 @@ def __init__(self,
core_threshold=0.3,
fallback_action_name="action_listen"):
# type: (Optional[Featurizer]) -> None
"""Policy which executes a fallback action if NLU confidence is low
or no other policy has a high-confidence prediction.
:param nlu_threshold: minimum threshold for NLU confidence.
If intent prediction confidence is lower than this,
predict fallback action with confidence 1.0
:param core_threshold: if NLU confidence threshold is met,
predict fallback action with confidence core_threshold.
If this is the highest confidence in the ensemble,
the fallback action will be executed.
:fallback_action_name: name of the action to execute as a fallback.
"""

self.featurizer = featurizer
self.max_history = max_history
Expand Down

0 comments on commit 1a3e30a

Please sign in to comment.