Hi, For question 1, that's a feature borrowed from ChatScript that the same rule won't be triggered again unless you do "keep". This may not be a feature we want in Ghost but we'll see in the coming months.
For question 2, the segfault is caused by interrupting the process, it can be avoided by stopping the psi-loop first (by doing `(ghost-halt)`) before quitting Guile. A lot of the existing features are modeled on ChatScript, you may have a better sense of it if you have a look at the ChatScript basic manual as well. Thanks! On Wed, Jan 31, 2018 at 6:43 AM, Randy Deborggraeve < [email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/opencog/6df7e704-6edf-432b-b53b-d59a3879b2a1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAMfi0BKF%2B1HxP6LmLcT4-J6O%3DTN%3DUT%2BzYmb73pkmb7AW27uBUg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
