|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
change aiml set with ChatterbeanHi guys, i've just downloaded Chatterbean and now I want to make Maria
aiml work on it, but it seems too hard for me :P I've found this in properties.xml <entry key="categories">Alice/</entry> and i've replaaced with <entry key="categories">Maria/*.aiml</entry> but it seems it doesnt work: Exception in thread "main" bitoflife.chatterbean.ChatterBeanException: bitoflife.chatterbean.parser.AliceBotParserException: java.lang.NullPointerException I've seen charlieBot and it uses <learn> tags to 'install' aiml categories, but i donno how to do with Chatterbean... any help will be apreciated :) _______________________________________________ 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: change aiml set with ChatterbeanOn Mon, Jul 14, 2008 at 12:25 PM, Max <under.1@...> wrote:
Hello Max, > Hi guys, i've just downloaded Chatterbean and now I want to make Maria > aiml work on it, but it seems too hard for me :P > > I've found this in properties.xml > <entry key="categories">Alice/</entry> > > and i've replaaced with > <entry key="categories">Maria/*.aiml</entry> I'm Helio, author of the (now all but abandoned) ChatterBean engine. If I remember correctly, the file loader expects the value of the "categories" Property to be either a path to a single AIML file, or a directory containing a set of AIML files; so try entering "Maria/" (without quotes) in place of "Maria/*.aiml". Also, keep in mind that ChatterBean in its current (and probably final) state has not been stress-tested, and hence is not suitable for serious projects unless you are a Java programmer willing to correct any bugs or performance shortfalls that may show up. -- Ja ne, Helio Perroni Filho Memory Leak http://xperroni.blogspot.com _______________________________________________ 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: change aiml set with Chatterbean<properties>
<comment>ChatterBean default configuration properties</comment> <entry key="context">context.xml</entry> <entry key="splitters">splitters.xml</entry> <entry key="substitutions">substitutions.xml</entry> <entry key="categories">maria/</entry> <entry key="logs">../Logs/</entry> </properties> it still doesn't work.... Exception in thread "main" bitoflife.chatterbean.ChatterBeanException: bitoflife.chatterbean.parser.AliceBotParserException: bitoflife.chatterbean.aiml.AIMLParserException: java.lang.RuntimeException: Cannot instantiate class bitoflife.chatterbean.aiml.Alice at bitoflife.chatterbean.ChatterBean.configure(ChatterBean.java:266) at bitoflife.chatterbean.ChatterBean.<init>(ChatterBean.java:138) I can't understand why... I think I'll take a look at the source... However It's nice to meet you and tnx for your support! On Mon, Jul 14, 2008 at 5:57 PM, Helio Perroni Filho <xperroni@...> wrote: > On Mon, Jul 14, 2008 at 12:25 PM, Max <under.1@...> wrote: > > Hello Max, > >> Hi guys, i've just downloaded Chatterbean and now I want to make Maria >> aiml work on it, but it seems too hard for me :P >> >> I've found this in properties.xml >> <entry key="categories">Alice/</entry> >> >> and i've replaaced with >> <entry key="categories">Maria/*.aiml</entry> > > I'm Helio, author of the (now all but abandoned) ChatterBean engine. > If I remember correctly, the file loader expects the value of the > "categories" Property to be either a path to a single AIML file, or a > directory containing a set of AIML files; so try entering "Maria/" > (without quotes) in place of "Maria/*.aiml". > > Also, keep in mind that ChatterBean in its current (and probably > final) state has not been stress-tested, and hence is not suitable for > serious projects unless you are a Java programmer willing to correct > any bugs or performance shortfalls that may show up. > > -- > Ja ne, > Helio Perroni Filho > > Memory Leak > http://xperroni.blogspot.com > _______________________________________________ > 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/ > -- ----- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=dW5kZXIuMTkyNjA%3D _______________________________________________ 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: change aiml set with ChatterbeanI've done a bit of debug and I think it founds the files, the problem is above
java.lang.ClassNotFoundException: bitoflife.chatterbean.aiml.A ........ Any ideas ? Exception in thread "main" bitoflife.chatterbean.ChatterBeanException: bitoflife.chatterbean.parser.AliceBotParserException: bitoflife.chatterbean.aiml.AIMLParserException: java.lang.RuntimeException: Cannot instantiate class bitoflife.chatterbean.aiml.A at bitoflife.chatterbean.ChatterBean.configure(ChatterBean.java:266) at bitoflife.chatterbean.ChatterBean.<init>(ChatterBean.java:138) at NioBe.main(NioBe.java:14) Caused by: bitoflife.chatterbean.parser.AliceBotParserException: bitoflife.chatterbean.aiml.AIMLParserException: java.lang.RuntimeException: Cannot instantiate class bitoflife.chatterbean.aiml.A at bitoflife.chatterbean.parser.AliceBotParser.parse(AliceBotParser.java:92) at bitoflife.chatterbean.parser.ChatterBeanParser.parse(ChatterBeanParser.java:113) at bitoflife.chatterbean.ChatterBean.configure(ChatterBean.java:262) ... 2 more Caused by: bitoflife.chatterbean.aiml.AIMLParserException: java.lang.RuntimeException: Cannot instantiate class bitoflife.chatterbean.aiml.A at bitoflife.chatterbean.aiml.AIMLParser.parse(AIMLParser.java:65) at bitoflife.chatterbean.parser.AliceBotParser.newGraphmaster(AliceBotParser.java:75) at bitoflife.chatterbean.parser.AliceBotParser.parse(AliceBotParser.java:85) ... 4 more Caused by: java.lang.RuntimeException: Cannot instantiate class bitoflife.chatterbean.aiml.A at bitoflife.chatterbean.aiml.AIMLHandler.startElement(AIMLHandler.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at bitoflife.chatterbean.aiml.AIMLParser.parse(AIMLParser.java:59) ... 6 more Caused by: java.lang.ClassNotFoundException: bitoflife.chatterbean.aiml.A at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at bitoflife.chatterbean.aiml.AIMLHandler.startElement(AIMLHandler.java:112) ... 19 more On Mon, Jul 14, 2008 at 6:51 PM, Max <under.1@...> wrote: > <properties> > <comment>ChatterBean default configuration properties</comment> > <entry key="context">context.xml</entry> > <entry key="splitters">splitters.xml</entry> > <entry key="substitutions">substitutions.xml</entry> > <entry key="categories">maria/</entry> > <entry key="logs">../Logs/</entry> > </properties> > > it still doesn't work.... > Exception in thread "main" bitoflife.chatterbean.ChatterBeanException: > bitoflife.chatterbean.parser.AliceBotParserException: > bitoflife.chatterbean.aiml.AIMLParserException: > java.lang.RuntimeException: Cannot instantiate class > bitoflife.chatterbean.aiml.Alice > at bitoflife.chatterbean.ChatterBean.configure(ChatterBean.java:266) > at bitoflife.chatterbean.ChatterBean.<init>(ChatterBean.java:138) > > I can't understand why... I think I'll take a look at the source... > However It's nice to meet you and tnx for your support! > > > > > > > > > On Mon, Jul 14, 2008 at 5:57 PM, Helio Perroni Filho <xperroni@...> wrote: >> On Mon, Jul 14, 2008 at 12:25 PM, Max <under.1@...> wrote: >> >> Hello Max, >> >>> Hi guys, i've just downloaded Chatterbean and now I want to make Maria >>> aiml work on it, but it seems too hard for me :P >>> >>> I've found this in properties.xml >>> <entry key="categories">Alice/</entry> >>> >>> and i've replaaced with >>> <entry key="categories">Maria/*.aiml</entry> >> >> I'm Helio, author of the (now all but abandoned) ChatterBean engine. >> If I remember correctly, the file loader expects the value of the >> "categories" Property to be either a path to a single AIML file, or a >> directory containing a set of AIML files; so try entering "Maria/" >> (without quotes) in place of "Maria/*.aiml". >> >> Also, keep in mind that ChatterBean in its current (and probably >> final) state has not been stress-tested, and hence is not suitable for >> serious projects unless you are a Java programmer willing to correct >> any bugs or performance shortfalls that may show up. >> >> -- >> Ja ne, >> Helio Perroni Filho >> >> Memory Leak >> http://xperroni.blogspot.com >> _______________________________________________ >> 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/ >> > > > > -- > ----- > Fight back spam! Download the Blue Frog. > http://www.bluesecurity.com/register/s?user=dW5kZXIuMTkyNjA%3D > -- ----- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=dW5kZXIuMTkyNjA%3D _______________________________________________ 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: change aiml set with ChatterbeanOn Mon, Jul 14, 2008 at 2:23 PM, Max <under.1@...> wrote:
> I've done a bit of debug and I think it founds the files, the problem is above > java.lang.ClassNotFoundException: bitoflife.chatterbean.aiml.A ........ Does any of the files in Maria's AIML set use HTML markup? That line about the class "bitoflife.chatterbean.aiml.A" not being found is probably due to ChatterBean finding an <a> tag during parsing, and then trying to instantiate the corresponding class – but since there is no "A" class within the "bitoflife.chatterbean.aiml" package, it throws an exception. I don't know if there is an easy way out of it, but you could either implement the HTML element classes or remove the HTML markup from your files. -- Ja ne, Helio Perroni Filho Memory Leak http://xperroni.blogspot.com _______________________________________________ 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: change aiml set with ChatterbeanYes, that was the problem... i've noticed that the html is the
problem. i think I'll implement the problematic tags taht I meet around... On Mon, Jul 14, 2008 at 7:59 PM, Helio Perroni Filho <xperroni@...> wrote: > On Mon, Jul 14, 2008 at 2:23 PM, Max <under.1@...> wrote: > >> I've done a bit of debug and I think it founds the files, the problem is above >> java.lang.ClassNotFoundException: bitoflife.chatterbean.aiml.A ........ > > Does any of the files in Maria's AIML set use HTML markup? That line > about the class "bitoflife.chatterbean.aiml.A" not being found is > probably due to ChatterBean finding an <a> tag during parsing, and > then trying to instantiate the corresponding class – but since there > is no "A" class within the "bitoflife.chatterbean.aiml" package, it > throws an exception. I don't know if there is an easy way out of it, > but you could either implement the HTML element classes or remove the > HTML markup from your files. > > -- > Ja ne, > Helio Perroni Filho > > Memory Leak > http://xperroni.blogspot.com > _______________________________________________ > 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/ > -- ----- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=dW5kZXIuMTkyNjA%3D _______________________________________________ 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 embeddable forum powered by Nabble | Forum Help |