Comments (11)
Almost certainly I'm not stripping out the ?. Have tried it with the ? left in the tag
I'll have a look later this morning and add your aims to the test cases to prove it works ( or prove its fixed )
from program-y.
Fixed in 0.2.0, and your aiml has been added to the test_aimls folder
Currently it does include the ? as part of the that, but I am looking to see if its worth stripping punctation out in a future release
Hope it find it useful
keith
from program-y.
Thanks for the quick reply, but the tag doesn't appear to work. I also tried the other that in the test folder. This is the output i get:
>>>: i like coffee
Do you take cream or sugar in your coffee?
>>>: no
Sorry, I don't have an answer for that!
>>>: hello
Hi there
>>>: hello again
Hello without that
I initiate a BotClient() instead of using the ConsoleBotClient() but that should not make a difference looking at the code?
from program-y.
from program-y.
from program-y.
Ok, I've found the problem, its to do with upper and lower case mismatch in the that processing. I do all the testing in upper case, but I see your grammar is mixed. I'll work on a fix and get back to you
from program-y.
I pulled v0.2. Tried several templates/patterns but didn't get it to work. Thanks for your help!
from program-y.
Fixed, 0.2.1 just uploaded, check out the tutorial bot, where i have your coffee.aiml file loaded
Ran it and got the following
Loading, please wait...
No bot root argument set, defaulting to [/Users/keithsterling/Documents/Development/Python/Projects/AIML/program-y/bots/tutorial]
KeiffBot 1.0 version 0.0.1, initiated September 9th, 2016
Hi, how can i help you today?
i like coffee
Do you take cream or sugar in your coffee?
yes
I do too.
i like coffee
Do you take cream or sugar in your coffee?
no
Really? i have a hard time drinking black coffee.
from program-y.
Also worth noting that as per the original AIML processors, all AIML text should be in a upper case. Its convert to upper case when the parse tree is built, and then any input you type in is also converted, this makes all matching only needed in upper case which makes it easier.
In terms of output, its converted from upper case to sentence text by the post processor, leaving it to the very last minute before doing so, again for ease of use
Sorry about the multiple attempts to fix it. I do all the unit testing in upper case and so missed the upper/lower case issue
from program-y.
Thanks, it works! I am planning to use this project for a project of mine, can i send you a private message? I have some other questions, and maybe in return I can help you write some documentation/tutorials etc
from program-y.
from program-y.
Related Issues (20)
- Programy on PythonAnywhere HOT 1
- Program-Y is alive.... again HOT 2
- <system> tag in aiml doesn't work HOT 1
- scheduling extension doesn't print message
- Error when trying to save data from 'learnf' elements to MongoDB HOT 2
- Wikipedia doesn't seam to work HOT 1
- <learn> and <star> don't work together HOT 1
- How to get a variable value outside of aiml files inside python code?
- Setting SentenceSplitter on an embedded bot HOT 4
- Whenever I install program y, cryptography fails to install and the whole installation stops.
- Bug in pattern parser where the star index of the words will change
- WARNING:root:[Console] [bot] [brain] [testuser] - System command node disabled in config
- ModuleNotFoundError: No module named 'sqlalchemy'
- Pattern matching not work in a right way
- image not displaying in telegram
- GUI for my bot (Not a feature request I was just unsure where to ask) HOT 1
- Change Default Response
- AttributeError: module 'collections' has no attribute 'MutableSet' HOT 3
- module apscheduler not found
- Thoughts about ChatGPT service for ProgramY
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.
from program-y.