Re: [opencog-dev] Re: How to handle input data that has an ID?

2017-03-03 Thread 'Nil Geisweiller' via opencog



On 03/03/2017 11:28 AM, Vishnu Priya wrote:



  Yeah. True!! Inheritance Link takes only two arguments.
My inputs belongs to certain ID. So somehow i want to associate my input
with ID.  It seems that, i could use AssociativeLink as Roman said. Then
probably i could do PLN reasoning. But Are there PLN rules that work for
such input?


PLN doesn't have any rule to reason about AssociativeLinks. To have some 
we'd need to define its semantics.


Maybe what you want is http://wiki.opencog.org/w/DefineLink

I haven't experimented much with these, but they are apparently well 
supported by the pattern matcher, and since the rule engine is built on 
top of the pattern matcher I assume it should work well with it.


Nil




Thanks
Vishnu


--
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+unsubscr...@googlegroups.com
.
To post to this group, send email to 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/dcf69018-27e7-4022-80bf-103fb0866a9f%40googlegroups.com
.
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+unsubscr...@googlegroups.com.
To post to this group, send email to 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/e85e7c0d-3f52-5d5d-de4e-fffb672f227c%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Re: How to handle input data that has an ID?

2017-03-03 Thread Vishnu Priya
Associative Link seems to solve my probleam. Let me try like this and get 
back to you.

On Wednesday, 1 March 2017 22:23:47 UTC+1, Roman Treutlein wrote:
>
> Well first of all, using a HebbianLink doesn't make sense you want a 
> AssociativeLink.
>
> And then it should kinda look like this:
>
> (AssociativeLink (stv 0.9 0.9)
> (InheritanceLink (stv 0.9 0.9)
> (ConceptNode "Einstein")
> (ConceptNode "violin-players")
> )
> (NumberNode "8787")
> )
>
>
>
> On Tuesday, February 28, 2017 at 9:18:46 PM UTC+1, Vishnu Priya wrote:
>>
>>
>>
>> i tried FC using the knowledge which has NumberNodes that are associated 
>> with the ConceptNodes through HebbianLink. I applied deduction rule and got 
>> an empty SetLink.
>>
>> Knowledge:
>>
>> (ConceptNode "Socrates" (stv .001 0.9))
>> (ConceptNode "Einstein" (stv .001 0.9))
>> (ConceptNode "Peirce" (stv .001 0.9))
>> (ConceptNode "man" (stv .01 0.9))
>> (ConceptNode "human" (stv .02 0.9))
>>
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Socrates")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Socrates")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Peirce")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Peirce")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "man")
>> (ConceptNode "human"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "man")
>> (ConceptNode "human")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "violin-players"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "violin-players")
>> (NumberNode "8787"))
>>
>>
>> (define source
>> (InheritanceLink
>> (ConceptNode "Einstein")
>> (ConceptNode "man")
>> (NumberNode "8787")
>> )
>> )
>>
>>
>> Where is it wrong in including ID?
>>
>>
>> Thanks,
>> Vishnu
>>
>>
>>
>> n Monday, 27 February 2017 16:29:45 UTC+1, Vishnu Priya wrote:
>>>
>>>
>>> Thanks for the reply, Roman. 
>>>
>>> So, should it be like this
>>>
>>> (EvaluationLink
>>> HebbianLink
>>>(PredicateNode "sweet@3fe00455-333f-4cd8-a488-1d23f81c4546")
>>>(ListLink
>>>   (ConceptNode "oranges@33c76dd3-d3c1-4e38-b2ba-b77abfbebadb")
>>>   (NumberNode  7878
>>>)
>>>   
>>> In general, i parse and get r2l output of the sentence. Then i can apply 
>>> a custom code to get the HebbianLink and the NumberNode ?
>>>
>>>
>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to 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/b0e56a13-c8cc-4655-a405-a481eff51365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.