You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(use-modules
(opencog)
(opencog nlp)
(opencog nlp relex2logic)
(opencog ghost)
(opencog ghost procedures)
(opencog exec))
(define-public (where-somebody-work who-list)
(display (string-append "argument: " (cog-name (car (cog-outgoing-set who-list))) "\n"))
(Word "SomeCompany"))
;; Ghost Rules
(ghost-parse "r: (where do _* work) '_0 work in ^where-somebody-work('_0) company.r: (where does _* works) '_0 work in ^where-somebody-work('_0) company.")
; Test Ghost
(test-ghost "Where do I work?")
(test-ghost "Where does Alice works?")
"I" and "Alice" are passed as "i" and "alice to the where-somebody-work method.
Using single quote '_0 for the local variable value does not help as well.
The text was updated successfully, but these errors were encountered:
Run the code:
"I" and "Alice" are passed as "i" and "alice to the where-somebody-work method.
Using single quote '_0 for the local variable value does not help as well.
The text was updated successfully, but these errors were encountered: