问题标签 [clipspy]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 如何在 Clipspy 中使用 Clips 变量?
如何在剪辑中定义变量并在执行剪辑文件后返回一个值,以便我可以将值分配给 python 变量。
这是我的constructs_file_name.clp
谢谢你。
python - CLIPS 初学者:如何使用 clipspy 将 Python 字典数据添加到 CLIPS 事实中
我想使用python字典中的clipspy添加事实(字典到事实)。但到目前为止,我无法这样做。当我是 Clips 规则和事实编码的初学者时,我遇到了语法错误。如果有人可以帮助我解决此问题,请提前感谢您。以下是我的代码:
这是我遇到的错误:
python - CLIPS 初学者:如何使用 Python 和 Clipspy 在事实中添加自动计数器属性
我想添加一个自动计数器作为属性,实际上使用 clipspy 这意味着第一个事实,你断言计数为 1,第二个为 2,依此类推。由于我是 Clips 规则和事实编码的初学者,所以我不知道如何添加它。如果有人可以帮助我解决此问题,请提前感谢您。以下是我的代码:
python - Clipspy printout rule
So I have been working on an expert system using clipspy recently. I have already came out with the rule file and load it back in using the clipspy. Some my question is, how do I extract the printout content in the rule file using the clipspy library because I have to make a simple GUI for the system. The GUI will be like pop up the question and prompt the user to fill in the answer until the ends of the system.
Example rule file:
Python script with clipspy:
python - Clips Beginner:在 python 和 clipspy 的 clips 规则中添加常规 exp 或任何替代选择 *
我有一个与模板事实中给出的路径匹配的剪辑规则,如果路径匹配,则将与该路径关联的 id 和文本断言到另一个模板中。路径只是字典中的文本条目。路径为“//Document/Sect[2]/P[2]”。我想制定一个这样的规则:
这样它就可以匹配 //Document/Sect[any number here]/P[any number here]。我找不到与此相关的任何内容,所以如果这是可能的,还是有其他选择?任何帮助,将不胜感激。谢谢!以下是我的规则代码: