1. If X croaks and X eats flies - Then X is a frog
2. If X is a frog - Then X is green
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/604300d3-214b-4948-b2b7-c86b2cdbdc1f%40googlegroups.com.
Hi, here are the steps to take in order to define rules and a rule base for the chainer:
step 1. Define the rules
eg. (define Rule_A (BindLink....) )
Step 2. Create a DefineLink
eg. (DefineLink (DefinedSchemaNode "Rule_A") Rule_A)
Step 3. Define a rulebaseeg. (define RuleBase_X (InheritanceLink (ConceptNode "RuleBase_X") (ConceptNode "URE")) )Step 4. Add rules to rule baseeg. (ure-add-rules Rule_A RuleBase_X)
an email to opencog+unsubscribe@googlegroups.com
<mailto:opencog+unsubscribe@googlegroups.com>.
To post to this group, send email to ope...@googlegroups.com
<mailto:opencog@googlegroups.com>.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit
https://groups.google.com/d/msgid/opencog/CAHrUA37Xqg9dMspd0JLamXHVDX9Ur3owrbtychu5a2W4AYBeWQ%40mail.gmail.com
<https://groups.google.com/d/msgid/opencog/CAHrUA37Xqg9dMspd0JLamXHVDX9Ur3owrbtychu5a2W4AYBeWQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/5b590b2a-203d-d85f-103c-29222012535f%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/7c03321c-8e84-408e-bfc6-24b4a72f016b%40googlegroups.com.
On Sun, Apr 9, 2017 at 10:48 PM, Alex <alexand...@gmail.com> wrote: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 start of 2017) of cog-fc still has 3 arguments: source/rule base/focus set. There is no variable-declaration argument. Just wanted to note for those who use this thread for troubleshooting cog-fc.2) I wonder about necessity of source as an argument, why we need this? Business Rule engines (like JBoss Drools) use entire Atomspace working memory as domain for reasoning - somehow first rule is selected and matched with facts and first inference is made and so this process continues? Focus set can be emtpy Set and then the entire Atomspace becomes the focus set. Maybe we can do this with source as well - maybe empty source will designed entire Atomspace as a source?Yes, you can pass empty SetLink. see here https://github.com/opencog/atomspace/blob/master/opencog/rule-engine/forwardchainer/ForwardChainer.cc#L110.
----
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/7c03321c-8e84-408e-bfc6-24b4a72f016b%40googlegroups.com.--Belachew Misgana Bayetta'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAOgrVvWaBFaV65C77%2BVHZcVgjxRTin5XXp68Nw%3Dt_7UkVsE0ZQ%40mail.gmail.com.
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.
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/640355b3-8649-4ee3-a682-85bbeb76811b%40googlegroups.com.
I have also tried providing variable declaration parameter and ran myfrog.scm
(cog-fc source wiki (VariableNode "x" ) (SetLink)). Still got the same error. :-(
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/2e5cc79a-85d4-4628-8115-d27e8cf8c329%40googlegroups.com.
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.
Hi Nil,
Thanks Nil. I did not know this recently added page.!! That was very helpful.
I tried BC and got the expected result.
I think, it's not only the problem of null confidence. Because this time, i did not get any convincing result but got something like this: