|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Newline/Carriage Return Issue with AIML on ProgramD 4.6Hi All,
I am hoping someone can give me advice regarding the issue I am experiencing. I wrote AIML for one of the old programD interfaces ( 4.1.*) couple of years ago. I have now upgraded to the new programd 4.6 and have experienced a number of issues regarding whitespace/carriage returns. I am not sure if these are related to my incorrect usage of AIML, missing settings or perhaps something else. I have a number of examples of what happens Case 1 Consider the below extract of AIML <category> <pattern>TESTONE</pattern> <template> hello <srai>TESTTWO</srai> </template> </category> <category> <pattern>TESTTWO</pattern> <template> Right here </template> </category> When I type TESTONE it should print out hello and the process TESTTWO i.e. I would expect it to print out hello Right here Instead it puts a carriage return in outputting the below hello Right here Now I am able to correct this by changing the AIML under TESTTWO to have the template all on one line <category> <pattern>TESTTWO</pattern> <template>Right here</template> </category> This outputs hello Right here I have lots and lots of AIML that is written in the previous form and this would mean hours of work to fix. I realise this is probably related to some new interpretation in progamd 4.6 of carriage returns i.e. they are included as part of the content. Is there any easy way I can switch this off Any help would be greatly appreciated Example of actual AIML file sample1.aiml Kind regards Lipska |
|
|
Re: Newline/Carriage Return Issue with AIML on ProgramD 4.6Hi Lipska,
What user interface are you using? Web interface, IM, ....? Noel lipska wrote: > Hi All, > > I am hoping someone can give me advice regarding the issue I am > experiencing. I wrote AIML for one of the old programD interfaces ( 4.1.*) > couple of years ago. I have now upgraded to the new programd 4.6 and have > experienced a number of issues regarding whitespace/carriage returns. > > I am not sure if these are related to my incorrect usage of AIML, missing > settings or perhaps something else. > > I have a number of examples of what happens > > Case 1 > Consider the below extract of AIML > > <category> > <pattern>TESTONE</pattern> > <template> > hello <srai>TESTTWO</srai> > </template> > </category> > > <category> > <pattern>TESTTWO</pattern> > <template> > Right here > </template> > </category> > > When I type TESTONE it should print out hello and the process TESTTWO i.e. I > would expect it to print out > hello Right here > > Instead it puts a carriage return in outputting the below > hello > Right here > > Now I am able to correct this by changing the AIML under TESTTWO to have the > template all on one line > > <category> > <pattern>TESTTWO</pattern> > <template>Right here</template> > </category> > > This outputs > hello Right here > > I have lots and lots of AIML that is written in the previous form and this > would mean hours of work to fix. I realise this is probably related to some > new interpretation in progamd 4.6 of carriage returns i.e. they are included > as part of the content. Is there any easy way I can switch this off > > Any help would be greatly appreciated > > > Example of actual AIML file > http://www.nabble.com/file/p16930873/sample1.aiml sample1.aiml > > Kind regards > Lipska > > > > > > > > This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
|
|
Re: Newline/Carriage Return Issue with AIML on ProgramD 4.6Hi Noel,
Thanks very much for the reply. I have tried it on the java console interface and on the web interface with the same results. Just a note the AIML file I attached does not cause this to happen but if its edited and a carriage return is placed under TESTTWO ( as below) it occurs. Lipska
|
|
|
Re: Newline/Carriage Return Issue with AIML on ProgramD 4.6Hello,
I need help. I recently started working on AIML. Can you please tell me how I can make the bot pause for a second during its reply.i.e. in between of its reply. The bot that I am working on, replies very fast. Thank you.
|
|
|
Re: Newline/Carriage Return Issue with AIML on ProgramD 4.6Hi Lipska,
I'm not sure what you mean about the carriage return occurring in the web interface output. Carriage returns are whitespace in HTML, and the usual handling of whitespace in HTML is to reduce it to a single space, unless you specify otherwise with css (or use elements like <pre> that preserve whitespace as-is by default). What does the HTML source look like for the response? If I can, I'll try this out myself, but it may be a while.... Noel lipska wrote: > Hi Noel, > > Thanks very much for the reply. I have tried it on the java console > interface and on the web interface with the same results. Just a note the > AIML file I attached does not cause this to happen but if its edited and a > carriage return is placed under TESTTWO ( as below) it occurs. > > Lipska > > > > Noel Bush wrote: >> Hi Lipska, >> >> What user interface are you using? Web interface, IM, ....? >> >> Noel >> >> lipska wrote: >>> Hi All, >>> >>> I am hoping someone can give me advice regarding the issue I am >>> experiencing. I wrote AIML for one of the old programD interfaces ( >>> 4.1.*) >>> couple of years ago. I have now upgraded to the new programd 4.6 and have >>> experienced a number of issues regarding whitespace/carriage returns. >>> >>> I am not sure if these are related to my incorrect usage of AIML, missing >>> settings or perhaps something else. >>> >>> I have a number of examples of what happens >>> >>> Case 1 >>> Consider the below extract of AIML >>> >>> <category> >>> <pattern>TESTONE</pattern> >>> <template> >>> hello <srai>TESTTWO</srai> >>> </template> >>> </category> >>> >>> <category> >>> <pattern>TESTTWO</pattern> >>> <template> >>> Right here >>> </template> >>> </category> >>> >>> When I type TESTONE it should print out hello and the process TESTTWO >>> i.e. I >>> would expect it to print out >>> hello Right here >>> >>> Instead it puts a carriage return in outputting the below >>> hello >>> Right here >>> >>> Now I am able to correct this by changing the AIML under TESTTWO to have >>> the >>> template all on one line >>> >>> <category> >>> <pattern>TESTTWO</pattern> >>> <template>Right here</template> >>> </category> >>> >>> This outputs >>> hello Right here >>> >>> I have lots and lots of AIML that is written in the previous form and >>> this >>> would mean hours of work to fix. I realise this is probably related to >>> some >>> new interpretation in progamd 4.6 of carriage returns i.e. they are >>> included >>> as part of the content. Is there any easy way I can switch this off >>> >>> Any help would be greatly appreciated >>> >>> >>> Example of actual AIML file >>> http://www.nabble.com/file/p16930873/sample1.aiml sample1.aiml >>> >>> Kind regards >>> Lipska >>> >>> >>> >>> >>> >>> >>> >>> >> _______________________________________________ >> This is the alicebot-general mailing list >> Reply to alicebot-general@... >> Unsubscribe and change preferences at >> http://list.alicebot.org/mailman/listinfo/alicebot-general >> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html >> Learn to read at http://www.literacy.org/ >> >> > This is the alicebot-general mailing list Reply to alicebot-general@... Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html Learn to read at http://www.literacy.org/ |
| Free Forum Powered by Nabble | Forum Help |