I'm trying to get the ghost module running, but i have some 
questions/issues with it.

*Scenario1: test-ghost*
scheme@(guile-user)> (use-modules (opencog)
             (opencog nlp relex2logic)
             (opencog openpsi)
             (opencog eva-behavior)
             (opencog ghost))
scheme@(guile-user)> (ghost-parse "s: (hi robot) Hello human")
[2018-01-30 22:25:46:462] [WARN] [GHOST] Did you forget to link a goal to 
the rule?
$1 = #t
scheme@(guile-user)> (ghost-parse "concept: ~young (child kid youngster)")
$2 = #t
scheme@(guile-user)> (test-ghost "hi robot good morning")
[2018-01-30 22:26:04:431] [INFO] [GHOST] Say: "Hello human"
scheme@(guile-user)> (test-ghost "hi robot good morning")
scheme@(guile-user)> 
When u run test-ghost for the second time i get no respose.

*Scenario2: ghost-run*
scheme@(guile-user)> (use-modules (opencog)
             (opencog nlp relex2logic)
             (opencog openpsi)
             (opencog eva-behavior)
             (opencog ghost))
scheme@(guile-user)> (ghost-parse "s: (hi robot) Hello human")
[2018-01-30 22:26:49:038] [WARN] [GHOST] Did you forget to link a goal to 
the rule?
$1 = #t
scheme@(guile-user)> (ghost-parse "concept: ~young (child kid youngster)")
$2 = #t
scheme@(guile-user)> (ghost-run)
$3 = #<thread 140098361210624 (254e8c0)>
scheme@(guile-user)> (ghost "hi robot good morning")
$4 = (StateLink
   (AnchorNode "GHOST Currently Processing")
   (SentenceNode "sentence@812d10bb-f1db-440f-a940-c59ab9427a25")
)

scheme@(guile-user)> [2018-01-30 22:27:24:115] [INFO] [GHOST] Say: "Hello 
human"
(ghost "hi robot good morning")
$5 = (StateLink
   (AnchorNode "GHOST Currently Processing")
   (SentenceNode "sentence@e2092ba1-eb11-4a57-8922-338231efca67")
)

scheme@(guile-user)> (quit)
Segmentation fault (core dumped)
In this case i also get an answer only the first time.


If i run the ghost-parse commands again, i'm getting answer again. I guess 
this is not supposed to work like this?
It also seems when using (ghost-run), i get segmentation fault when i quit 
guile.

Is there somewhere a more detailed description on how to use this correctly 
or should i go for chatbot-psi instead?
Working on a ROS node that contains the atomspace and scheme interpeter, so 
trying to get "a" simple chatbot working, so i can boot the chatbot script 
from my ROS node and feed the incomming message to the chatbot and send the 
response back to ROS.


-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/6df7e704-6edf-432b-b53b-d59a3879b2a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to