Rasa课程、Rasa培训、Rasa面试、Rasa实战系列之RegexFeaturizer
RegexFeaturizer 源码增加基于正则表达式的消息特征
@DefaultV1Recipe.register(
DefaultV1Recipe.ComponentType.MESSAGE_FEATURIZER, is_trainable=True
)
class RegexFeaturizer(SparseFeaturizer, GraphComponent):
"""Adds message features based on regex expressions."""
@classmethod
def required_components(cls) -> List[Type]: