learn's People
learn's Issues
Will not load aiml files.
I am excited to incorporate your learning addition into my bot however when I try to load aiml I get errors and fails to load. I can load your one learn.aiml file provided in the package when loading your startup.xml file. Am I doing something wrong?
kernel.bootstrap(learnFiles = "std-startup.xml", commands = "load aiml b") File "/home/dad/apps/bot/aiml/Kernel.py", line 152, in bootstrap self.learn(file) File "/home/dad/apps/bot/aiml/Kernel.py", line 361, in learn try: parser.parse(f) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.7/xml/sax/expatreader.py", line 320, in end_element self._cont_handler.endElement(name) File "/home/dad/apps/bot/aiml/AimlParser.py", line 369, in endElement try: self._endElement(name) File "/home/dad/apps/bot/aiml/AimlParser.py", line 413, in _endElement key = (self._currentPattern.strip(), self._currentThat.strip(),self._currentTopic.strip()) AttributeError: 'list' object has no attribute 'strip'
How to add custom scripts?
For e.g. when you ask about the weather from chatbot then it can tell you the weather.
Is there any way through which we can include custom scripts which can perform some task???
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.