English 中文(简体)
How to read line in CLIPS?
原标题:

I need to read a string in CLIPS so i m usign (readline) but it doesn t seem to work. It doesn t let me enter anything and it just returns "". Any ideea what s the issue?

CLIPS> (readline)
""

I m using latest version of http://clipsrules.sourceforge.net/

最佳回答

This was just a bog on that version i was using. It seems that the bug was present only in the Windows version, that with a GUI. If you run it with the one frm command prompt it worked fine. I reported the bug on their google group, they confirmed and i think it is fixed by now.

问题回答

Check (readln)...

Good luck!





相关问题
Expert System (?) algorithm

I have an algorithmic problem which can be reduced to this task: Suppose we have a list of n diseases and m symptoms. For each disease d and symptom s, we have one of three options: the symptom is ...

Dereferencing a Slot in a Matched Fact in Clips

How do you dereference a slot in a fact matched in the LHS of a rule? If a variable matches a fact, I can t find how to create further conditions that match slots within that fact. For example, in ...

Clips matching expression is not working

hello in clips i have this template: (deftemplate cell(slot x)(slot y)(slot alive)) and this fact : (start 1 1) then i have this claus in the LHS : ?start<-(start ?x ?y) and i want to get ...

How to read line in CLIPS?

I need to read a string in CLIPS so i m usign (readline) but it doesn t seem to work. It doesn t let me enter anything and it just returns "". Any ideea what s the issue? CLIPS> (readline) "" ...

Pruning Deductions in Expert Systems

In a rule system, or any reasoning system that deduces facts via forward-chaining inference rules, how would you prune "unnecessary" branches? I m not sure what the formal terminology is, but I m just ...

what languages are used in AI research today?

I am currently dabbling in expert systems, emacs lisp, and reading up about artificial intelligence. Traditionally, artificial intelligence is associated with LISP and expert systems with CLIPS. ...

Neural Network Expert System

Does anyone know how to emulate an Expert Systems using Neural Networks? An example of this is the 20q.net website. I m more curious to how the network would be designed; ie how many inputs, what the ...

热门标签