Fix AdaptIntent without name.
@@ -26,9 +26,11 @@ from .base import IntentMatch
class AdaptIntent(IntentBuilder):
"""Wrapper for IntentBuilder setting a blank name.
- This is mainly here for backwards compatibility, adapt now support
- automatically named IntentBulders.
+ Arguments:
+ name (str): Optional name of intent
"""
+ def __init__(self, name=''):
+ super().__init__(name)
def _strip_result(context_features):
