Hi everyone,
I’m playing for some time now with the idea of passing bunch of facts between topics.
I have one generic topic that can extract information from a sentence based on the grammatical structure (subject, verb, object and some part of speech tags).
I want to pass a reference of the main fact, so other topics can access the tree of the structure given the root fact.
For example:
>cinema in london
>:userfacts
( cinema is main_subject )
( ( cinema is main_subject ) at_location London 0x80 )
And also it creates this:
variable: $main_fact = 218756
I spent some time but I can’t seems to understand how to use the reference correctly.
I can do for example:
>:do ^field($main_fact subject)
result: NOPROBLEM output: cinema
Cinema
>
But I don’t get how to go from there to get the fact based on this fact.
So, in the example above,
I want to go from:
( cinema is main_subject )
or:
$main_fact = 218756
to:
( ( cinema is main_subject ) at_location London 0x80 )
I’ve read ChatScript fact manual but didn’t found what i’m looking for.
Please help,
Thanks in advanced,
Sam