您当前的位置: 首页 >  面试

段智华

暂无认证

  • 3浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Rasa课程、Rasa培训、Rasa面试、Rasa实战系列之RegexFeaturizer

段智华 发布时间:2022-05-02 20:19:23 ,浏览量:3

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]:
 
关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.2366s