AIML - 模式术语之间的通配符
是否可以在模式中的术语之间使用通配符?例如,如果我想回答“我的书本逾期罚款是多少?”的问题。有没有办法在术语“逾期”和“书籍”之间使用通配符?
Is it possible to use wild cards between terms in a pattern? for example, if I want to answer the question, "How much are overdue fines on my books?" is there a way to use a wild card between the terms "overdue" and "books?"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的。做类似的事情:
Yes. Do something like:
我没有足够的奖励分来回应 Bravax 的答案,但可以通过解决所用句子的主题来添加解决方案。在英语中,人们通常会说:“我的书上有多少逾期罚款?”; “fines”是这里的星星,但是“Cat”正在寻找“fine”,所以“Cat”不会看到它。
考虑将“猫的第二个模式”从“yourfine is”更改为“your罚款是”。其余的就顺其自然了。
I don't have enough brownie points to respond to Bravax's answer, but to add to the solution by addressing the topic of the sentence used. In Engrish, one would normally say, "How much are Overdue Fines on my books?"; "fines" is the Star here, but the 'Cat is looking for "fine", so the 'Cat won't see it.
Consider changing the 'Cat's 2nd pattern from "your fine is", to "your fines are". The rest kind of flows along.