I am new to CLIPS and to clipsPy. I am trying to create a instance of a CLIPS class
This is the class I have defined and correctly build in my python environment (clipsPy)
ENTITIES_CLASS = """
(defclass ENTITY-CLASS (is-a INITIAL-OBJECT)
(slot text (type STRING))
(slot confidence (type FLOAT))
(slot type (type SYMBOL))
)
"""
env.build(ENTITIES_CLASS)
This works as expected, but when I try to create an instance of this class:
new_instance = "(ent0-0 of ENTITY-CLASS (text 'Bruce Springsteen')(confidence 1.0)(type PER))"
env.make_instance( new_instance )
I get this empty error:
I have tried multiple forms of building the new_instance string but none have work :
new_instance = '(ent0-0 of ENTITY-CLASS (text "Bruce Springsteen")(confidence 1.0)(type PER))'
new_instance = "(ent0-0 of ENTITY-CLASS (text 'Bruce Springsteen') (confidence 1.0) (type PER) )"
Where is my syntax error? I appreciate any help