Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-23 Thread 'Nil Geisweiller' via opencog
Hi Vishnu, there are actually examples (besides the unit tests) under /examples/rule-engine including the animal (called frog). There are also examples of PLN under /examples/pln not all of these examples are complete though. Adding more examples is welcome good, feel free to create PRs

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-22 Thread Vishnu Priya
Hi Nil, Currently, as there are no working example files for FC/BC, i thought i could come up with some examples and contribute. So far, i have tested simple rule like Deduction and got that working. But now i wanted to try some other different rule. So, as per

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread 'Nil Geisweiller' via opencog
Cool. Thanks. It's not high priority, though still important, to have a user error check so it might take a while before I add it. Of course if you or anyone wants to give it a stab it's always welcome. Nil On 04/22/2017 12:09 AM, Vishnu Priya wrote: Thanks Nil. Yeah. That was the

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread Vishnu Priya
Thanks Nil. Yeah. That was the problem. I have mistakenly entered the > parameters. I did not get from any example file. Now it works as expected. I have also created a GitHub Issue for not returning appropriate err message. Cheers, Vishnu -- You received this message

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread 'Nil Geisweiller' via opencog
Needless to say if you've got that from a documentation or example file, let me know so you or I can update it. Nil On 04/20/2017 10:54 PM, Vishnu Priya wrote: I installed the recent version and tried FC. Previously i used to work with only three arguments. But now as it requires

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread 'Nil Geisweiller' via opencog
Hi Vishnu, that's cause now the rule base comes first, as documented here http://wiki.opencog.org/w/URE_Configuration_Format#Usage you need to enter (cog-fc base source (List) (SetLink)) I did that change while streamlining the FC and the BC APIs. So he URE tried to parse your source as if

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread Linas Vepstas
I assume that this is a bug somewhere, in the example, or wherever, and Nil is the one to look at it. If this is in regard to a block of code in some examples directory, open a bug report. If you want to be totally awesome then track down the bug, and provide a patch? --linas On Fri, Apr

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread Linas Vepstas
Maybe the (List) should have been a node?? At any rate, cog-fc should check its arguments for validity, before proceeding. --linas On Thu, Apr 20, 2017 at 2:54 PM, Vishnu Priya wrote: > > > I installed the recent version and tried FC. Previously i used to work >>

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-20 Thread Vishnu Priya
I installed the recent version and tried FC. Previously i used to work > with only three arguments. But now as it requires four parameters, i gave > empty ListLink additionally. But it throws Error. My scm has: (load "/opt/opencog/opencog/pln/rules/deduction-rule.scm")

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-10 Thread 'Nil Geisweiller' via opencog
I've added a bit more explanation here http://wiki.opencog.org/w/URE_Configuration_Format#Usage Nil On 04/09/2017 10:04 PM, Linas Vepstas wrote: On Sun, Apr 9, 2017 at 6:39 PM, Misgana Bayetta > wrote: On Sun, Apr 9, 2017

Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-09 Thread Linas Vepstas
On Sun, Apr 9, 2017 at 6:39 PM, Misgana Bayetta wrote: > > > On Sun, Apr 9, 2017 at 10:48 PM, Alex wrote: > >> OK, I followed with updated tutorial https://github.com/opencog/ato >> mspace/tree/master/examples/rule-engine/chaining and I

[opencog-dev] Re: Calling forward/backward chainer

2017-04-09 Thread Alex
OK, I followed with updated tutorial https://github.com/opencog/atomspace/tree/master/examples/rule-engine/chaining and I managed to run my first cog-fc with the normal result. I would like to raise two points: 1) tutorial says that cog-fc has 4 arguments, but my version of opencog (as or