On 05/24/2018 06:33 AM, Linas Vepstas wrote:
 > Nil also proposed to use GetValueLink...

I didn't really understand that proposal. He seemed to be talking about truth values, not values in general.

No, I meant values in general. So for instance if atom (Node "A") holds a FloatValue (5.2, 0.1, 4.5) at key (Schema "*-my-key*-"), the following would return something like

(cog-execute!
  (GetValueLink
    (Node "A")
    (Schema "*-my-key-*")))

(List (Number 5.2) (Number 0.1) (Number 4.5))

Here the conversion from FloatValue to atom is kinda obvious, in other more sophisticated values (like TensorFlowValue) a method will have to be provided.

I suppose we would add some

ProtoAtom::to_atom()   (or perhaps to_handle)

In case the proto atom is an atom it would return itself, otherwise it would construct the corresponding atom.

Nil

--
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 [email protected].
To post to this group, send email to [email protected].
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/a544f351-3d9f-a76c-578d-f0285071136a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to