-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalized pattern does not work in GHOST #3483
Comments
Should be fixed by #3485 |
I see it works with the fix #3485 if test-ghost is used: (use-modules
(opencog)
(opencog nlp)
(opencog nlp relex2logic)
(opencog openpsi)
(opencog ghost)
(opencog ghost procedures)
(opencog exec)
)
(ghost-parse "
r: (where do _* work) '_0 work in SomeCompany.
^keep()
")
; Disable the ECAN related config for now
(ghost-set-sti-weight 0)
(ghost-af-only #f)
(ghost-run)
(test-ghost "Where does Alice work?")
(ghost-halt) The result is But the same example does not work if ghost instead of test-ghost is used: (use-modules
(opencog)
(opencog nlp)
(opencog nlp relex2logic)
(opencog openpsi)
(opencog ghost)
(opencog ghost procedures)
(opencog exec)
)
(ghost-parse "
r: (where do _* work) '_0 work in SomeCompany.
^keep()
")
; Disable the ECAN related config for now
(ghost-set-sti-weight 0)
(ghost-af-only #f)
(ghost-run)
;(test-ghost "Where does Alice work?")
(ghost "Where does Alice work?")
(ghost-halt) Nothing is printed. |
@stellarspot It works, but I believe you are putting all of the above in a file and just load it in the Guile shell, that means you are executing |
I see. Thank you. If I add the |
There is one more example where pattern (use-modules
(opencog)
(opencog nlp)
(opencog nlp relex2logic)
(opencog openpsi)
(opencog ghost)
(opencog ghost procedures)
(opencog exec)
)
(ghost-parse "
r: (* work in _*) '_0 is a great company!
^keep()
")
; Disable the ECAN related config for now
(ghost-set-sti-weight 0)
(ghost-af-only #f)
(ghost-run)
(ghost "I work in SoftMegaCorp.")
(sleep 1)
(ghost "Alice works in HardMegaCorp.")
(sleep 1)
(ghost-halt) |
Run the sample:
The output is (i work in SomeCompany.)
The rule "(where do _* work)" does not match sentence "Where does Alice works?"
The text was updated successfully, but these errors were encountered: