I have been trying to print the value of a variable in PyClips without any success.Any help would be appreciated. Here is the code.
Instead of "Are you observative" it prints "Are you ?name"
def clips_raw_input(prompt):
return clips.String(raw_input(prompt))
clips.RegisterPythonFunction(clips_raw_input, "input")
clips.Assert("(quality observative) ")
clips.Assert("(quality communicative) ")
clips.Assert("(quality emotionally-stable) ")
clips.Assert("(has human true)")
r1 = clips.BuildRule(
"what-are-qualities",
"""(quality ?name)
(not (has ?name ?))""",
"""(bind ?response (python-call input Are you ?name))
(assert (has ?name ?response))""")
Any help will be appreciated