【发布时间】:2019-10-03 14:17:10
【问题描述】:
我有一个使用正则表达式的邮件意图:
## regex:regex_mail
- .\*@.*
## intent:consultation-dossier2
- [email@gmail.com](regex_mail)
- [cncc@gmail.fr](regex_mail)
- [cncc.leather@planet.tn](regex_mail)
- [contact@cetime.com.tn](regex_mail)
- [ebtgeg@egrg.aege](regex_mail)
问题是在输入“documentation@gmail.com”时,nlu 识别实体“regex_mail”但选择了意图“documentation”。
https://drive.google.com/open?id=1pvSsCZsqEt8HuSVaZr8x9sIn8LgqnZuu
【问题讨论】:
-
这可能是因为
documentation这个词不在您的意图consultation-dossier-2中。而且我认为意图预测不受实体类型的影响,因此您可能希望通过其他方式(例如使用表单)来提取实体。 -
@wael BTW,您没有提供“文档”意图示例。让他们思考会发生什么可能很有用
标签: rasa