我有以下test.aiml.csv文件:-
0,GIVE ^ * of ^ INSTANCE ^ *,*,*,
<test service="pannous"><star index = "2"/> GIVE THE DETAILS OF <star index = "5"/></test>,test.aiml 我有以下test.aiml文件:-
<category><pattern>GIVE ^ * of ^ INSTANCE ^ *</pattern>
<template><test service="pannous">SEARCH BPM details <star index = "2"/> of <star index = "5"/></test></template>
</category>所以当我让机器人喜欢这个的时候
给出了xyz实例70599的状态,的值是2是us the state,5是70599。
但我的期望是star-2:- state,怎么才能在of之前得到最后一个字呢?
提前谢谢。
发布于 2017-10-19 15:57:49
问题是,当您使用可选通配符(^等)时,星型索引相对于实际使用的通配符数量。因此,您可能需要对另一个模式进行srai,给出* OF *来解析实际使用的文本。
https://stackoverflow.com/questions/45728710
复制相似问题