34 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
146
views
CLIPS/Clipspy codes run rule multiple times
I have written codes to create an expert system in risk analyses and create GUI. I use clipspy library in python. at the beginning, in a page I get my answers and then assert facts. in each page I ...
3
votes
1
answer
173
views
How to route I/O to console AND logfile using clipspy
I am using clipspy v1.0.0 and Python 3.10 on Ubuntu 22.0.4 LTS.
I am trying to get commands from CLIPS rules (e.g. print t 'WARN: Listen up, maggots...') to print to the console by calling my ...
1
vote
1
answer
260
views
In clipspy, how can I get asserted fact from a python class or def function?
I want to create an expert system program to do risk analysis in occupational safety. I code this program in CLIPS. To create GUI and to add new attribute it, I want to recode in Python with clipspy ...
-1
votes
1
answer
154
views
How can you vary the facts using lists in clipspy
I have tried to vary the facts using lists and a cycle for but I have not succeeded, The way I tried it is to create a list for each variable in the template and then apply an cycle for but it didn't ...
0
votes
1
answer
96
views
I get a syntax error when executing the code using clipspy
I don't see the bug in the syntax of the program, the error I get is this:
Reglas.CLP, Line 6: Syntax Error: Check appropriate syntax for defrule. ERROR: (defrule MAIN::...
0
votes
2
answers
145
views
Why does this error occur when creating an expert system in Python using clipspy?
When I run the code I get this error:
clips.common.CLIPSError: [CSTRNCHK1] test.CLP, Line 7: A literal restriction value found in CE #1 does not match the allowed types for slot 'Presencia'. ERROR: (...
0
votes
1
answer
144
views
Does not generate anything in the output python code using clipspy
I am creating an expert system using clipspy, when I run the code in Python it throws nothing in the output and I have not been able to find the reason.
Python code:
import clips
DEFTEMPLATE_STRING = ...
2
votes
1
answer
68
views
CLIPS Error: Illegal use of the module specifier in clipspy
I'm using clipspy. I want to define some module-rules to assert module-facts. The rule is based on facts from multiple modules. I get a CLIPS Error:
Illegal use of the module specifier
import clips
...
0
votes
2
answers
138
views
Looking for source code repositories for AI Planning systems written in CLIPS
I have gone through github extensively. Last time I checked the CLIPS tag was removed btw.
I am looking for CLIPS code repositories that contain AI Planners. Since the word CLIPS confuses many search ...
0
votes
1
answer
127
views
How can I find out at which step some rules have fired?
I need to know which rules and facts were fired in which inference step.
I used watch rules to print out which rules have fired. But I cannot figure out how to output at which steps the rules have ...
0
votes
1
answer
238
views
Clips Beginner: Add regular exp or any alternative to select * in clips rule in python and clipspy
I have a clips rule that matches the path given in the fact of a template and if path matches it assert the id and the text associated with that path into another template. The path is just a text ...
0
votes
1
answer
657
views
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 ...
0
votes
1
answer
185
views
CLIPS Beginner: How to add an automatic counter attribute in facts using Python and Clipspy
I want to add an automatic counter as an attribute in fact using clipspy it means The first fact, that you assert counts as number 1, the second as number 2 and so on. As I am beginner to Clips rules ...
0
votes
1
answer
409
views
CLIPS Beginner: How to add Python dictionary data into CLIPS facts using clipspy
I want to add facts using clipspy from dictionary in python (Dict to fact). But so far I am unable to do so. I am getting syntax errors as I am beginner to Clips rules and facts coding. Thank you in ...
0
votes
1
answer
296
views
CLIPS/clipspy Rule Order
So I'm trying to self-learn CLIPS and clipspy for a class assignment and I'm a bit stuck. The code below compiles and runs just fine but the output is a bit strange. I am trying to expand on examples ...