AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

2 different :build bugs, not sure why
 
 

I started with a fresh install of CS 3.72. I ran Haryy, worked fine. I wrote a file named filesInga.txt exactly as filesHarry.txt, but changed the path to RAWDATA/INGA. I copied the files from RAWDATA/HARRY into RAWDATA/INGA and changed every instance of harry to inga in simplecontrol.top. I ran harry, he worked fine. I ran inga, she worked fine. I added a file (entertainment.top) with the following in it:

topic: ~television (tv television_show tv_show tv_program)

t: What’s your favorite TV show?
  a: At the moment, mine is The Blacklist. I think James Spader is wonderful.

Everything still worked.

I added a file called aboutInga.top to RAWDATA/INGA that didn’t work. Here are the first few lines of the file, each throws an “unknown top-level declaration”:

?: ( was today a good day )Yes it was, at least for me. Was it a good day for you?

?: ( what is ai )Artificial intelligence is the branch of engineering and science devoted to constructing machines that think.

?: ( what language are you written )I am actually written in many languages. Primarily I am written in Python, with some of my subroutines in C++ and my Master AI in Lisp.

s: ( activate the robot )Aye Aye Captain! Robot activated. Awaiting your command. Oh wait, you really thought that would work? That’s so cute!


I tried adding:

topic: ~aboutInga (Inga inga you robot robots)

Still didn’t work.

Another file, called humans.top threw the same error and here it is:

topic: ~humans(human humans people)
  s: (I am curious)That seems to be common among humans. I seem to be curious, but for now that’s just my programming.

Any guidance on those errors would be greatly appreciated.

After that, no matter what I did, CS kept seeing those files, even if I completely deleted them from the system.

I tried a fresh install of CS to reproduce the problem, harry worked fine, made filesInga.txt as follows:

# underlying conversation system
RAWDATA/INGA/

# quibble ability
RAWDATA/QUIBBLE/

and made a file INGA in rawdata, with all of harry’s files copied in, but all instances of harry changed to inga. This time it didn’t work at all, I got the same error as last week:

:~/ChatScript$ ./LinuxChatScript64 local
ChatScript Version 3.72 64 bit LINUX ENGLISH
  Dictionary building disabled. 
Build0: words=62109 facts=126810 dtext=1099948 stext=0 Mon Nov 11 22:52:38 2013
Build1: words=0 facts=813 dtext=0 stext=0
Params dict:349525 fact:800000 text:30000kb hash:65536
    buffer:15x80kb cache:1x50kb userfacts:100
Used 51MB: dict 259,598 (29074kb) fact 227,724 (9108kb) text 12116kb
        buffer (1200kb) cache (50kb) POS: 521 (16kb)
Free 40MB: dict 89,927 fact 572,276 text 17,883KB

Enter user name: richard


  >:build Inga

——Reading file introductions.top
Reading topic ~introductions

——Reading file simplecontrol.top
Reading outputmacro: ^inga
Reading outputmacro: ^georgia
Reading table tbl:defaultbot
Reading topic ~control
Reading topic ~alternate_control

——Reading file keywordless.top
Reading topic ~keywordless

——Reading file simplecontrol.top~
Reading outputmacro: ^harry
Reading outputmacro: ^georgia
*** Error- line 11 of simplecontrol.top~:
  in simplecontrol.top~ at 11: outputmacro: georgia() # you can request georgia by giving name:georgia   as your login
  MACRO-3 macro ^georgia already defined
Reading table tbl:defaultbot
Reading topic ~control
Reading topic ~alternate_control

——Reading file childhood.top
Reading topic ~childhood

——Reading file quibble.top
Reading topic ~quibble_all
Reading topic ~intent
Reading topic ~honest_response
Reading topic ~quibble_will

——Reading file eliza_because.top
Reading topic ~quibble_because

——Reading file eliza_misc.top
Reading topic ~quibble_misc
*** Warning- line 400 of eliza_misc.top: shoulds is not a known word. Is it misspelled?

——Reading file eliza_or.top
Reading topic ~quibble_or

——Reading file eliza_do.top
Reading topic ~quibble_do

——Reading file eliza_can.top
Reading topic ~quibble_can

——Reading file eliza_where.top
Reading topic ~quibble_where

——Reading file eliza_when.top
Reading topic ~quibble_when

——Reading file eliza_why.top
Reading topic ~quibble_why

——Reading file eliza_how.top
Reading topic ~quibble_howmuch
Reading topic ~quibble_how

——Reading file eliza_what.top
Reading topic ~quibble_what

——Reading file eliza_who.top
Reading topic ~quibble_who

——Reading file eliza_not.top
Reading topic ~quibble_not
*** Warning- line 35 of Post compilation Verification: At least one duplicate topic name, i.e., ~control, which may intended if bot restrictions differ.

ERROR SUMMARY:
  line 11 of simplecontrol.top~: MACRO-3 macro ^georgia already defined
r
1 errors - press Enter to quit. Then fix and try again.

Can’t get past the easy stuff, not sure why?

regards, Richard

 

 
  [ # 1 ]

More information, apparently the first bug (the new .top files) is not a bug. I just did yet another fresh install, ran harry with those files in his folder and they worked fine. I had made no changes to the files other than changed aboutInga.top to robots.top. Got no errors. So my problem would seem to be in simplecontrol.top when I try to build a bot with a different name. For the record, while I wasn’t using the same file I emailed to you last week Bruce, it was an identical file. All I did in either instance was ctrl f in simplecontrol.top and everywhere I found harry in any form I changed it to inga in the same form.

regards, Richard

 

 
  [ # 2 ]

So, while your descriptions are interesting, I doubt the interpretation.  There will be no hidden cache.  It can occur, if you have a compiling flaw in script, that the TOPIC folder will be left in an inconsistent state and you must erase its contents to build again. That’s possible.  I’m sure that if you unzipped ChatScript into some other folder not named ChatScript, it would compile, build, run, etc right out of the box unchanged.

It is certainly the case that your aboutInga.top file that started with:
?: ( was today a good day )Yes it was, at least for me. Was it a good day for you?
would fail to compile because you had not declared a topic for it. And maybe if you subsequently added the topic header, it might still have issues if the TOPIC folder had its content in a confused state.  I do not figure humans.top would issue the same error.

WHAT I DO SEE is that you get the duplicate Georgia complaint because you have an editor backup file in with your main files.. the compilation trace shows this:
——Reading file simplecontrol.top~
and that is clearly a backup replicant for your main simplecontrol.top file.

 

 
  [ # 3 ]

Working through that now, thanks.

regards, Richard

 

 
  [ # 4 ]

that was it, hidden file simplecontrol.top~ When this is deleted and I run a :build Inga reset, everything seems to work except she can’t tell me her name. I should think that’s just a line I missed in one of the files. I’ll find it. thanks for the help.

And as far as the cache, not sure why you even saw that post, I edited it out within minutes of posting it, and changed the report to just the bits that were caused by the duplicate simplecontrol.top

thanks again, Richard

 

 
  [ # 5 ]

I see all posts, immediately via email.

 

 
  [ # 6 ]

Well that would explain it then. The post with the cache data issue was deleted and reposted as above. Regardless, thanks for your help and patience.

regards, Richard

 

 
  login or register to react