-1

I am new to pyke, hence i don't know how to create these files. Can such files be made in notepad++ and also can PYKE be used to create and dietician expert system

9000
  • 39,899
  • 9
  • 66
  • 104
  • It appears that .krb ad .kbf files must be plain text files; the docs explain their syntax. Notepad++ should be adequate. – 9000 May 26 '17 at 14:14
  • thanks...do you know further about pyke – Anushka Shrestha May 26 '17 at 14:40
  • No, it's the first time I see PYKE. It seems to be a Prolog implementation with a Pythonic syntax, so ideas from most Prolog books should apply. – 9000 May 26 '17 at 14:43

1 Answers1

0

Your favorite text editor will work. Simply make the extension krb/kfb/kqb.

PyKE is an inference engine used with Python. Because this introduces logic programming to Python, you have the ability to create an expert system, just like in Prolog or CLIPS. So yes, you can create a diet planner or anything else.

Also, PyKE was inspired by Prolog, but it tries to go beyond what Prolog is capable of. For one, it can use both forward chaining and backward chaining, while Prolog is backward only. Another idea that sets it apart from Prolog is the ability to generate new programs from Python functions in the PyKE code that are added when the rule they are attached to is fired.

Rick
  • 1