ahmadfaizalbh / chatbot Goto Github PK
View Code? Open in Web Editor NEWPython ChatBot ๐ฌ
Home Page: https://chatbot.obbne.com
License: MIT License
Python ChatBot ๐ฌ
Home Page: https://chatbot.obbne.com
License: MIT License
I use chatbotai successfully, but in a very simple way (mostly, the client says something and the bot respondes).
Nevertheless, I'm very curious regarding all the features listed in "List of feature supported in bot template" and I'd like to use them but I'm missing some clear examples. Could you provide some?
Hi, first of all thank you for your great library. I have several variables managed in my python script and I try to access those variables in functions that I register using register_call. But it seems that they are never updated within the function.
An example:
current_speaker = None
@register_call("iam")
def iam(name, session_id = "general"):
if current_speaker == None:
return "Nice to meet you " + name
else:
return "I already know you " + name
Here, current_speaker is always None, no matter if I set it or not.
What are my options to get a global variable into such a function?
Are you considering making a plugin system with a marketplace? It would go well with your UI, and us users could change the program to our will.
I try to open the chatbot project in vs code but it is not opening can I get the step, please
Hi,
I would like to execute chatbot program without linux cmd. I'm using windows 10.
I cloned and installed it but I tried to execute setup.py like this way:
C:\Windows\System32\Chatbot>py setup.py
but the response was:
C:\Windows\System32\Chatbot>chatbot import demo
"chatbot" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Thanks!
Hi, I'm running chatbotai in combination with snips-nlu whereas chatbotai is the first choice and whenever an answer cannot be parsed, snips-nlu should be used and try to parse the user input. The problem is that I do not know when no pattern from chatbot ai matches. Is there a way to get such a score/boolean? Otherwise, I'd like to open a feature request.
Hi ! I'm trying to work with your Chatbot and I was wondering if there is a posibility to only make the Bot answering under a certain condition. I tried it with following template but it didn't work:
{% block %}
{% client %}(?P.*){% endclient %}
{% if {% call Myfuncion:%query%} %}
{% response %}My answer.{% endresponse %}
{% endif %}
{% endblock %}
The funcion Myfuncion returns True / False depending on the client's query.
Thank you in advance for your help!
It seems that I cannot call a function without parameter. I have a very simple dialog ("what time is it?", "it is 12 o'clock") that does not require a parameter. When I create a block like:
{% block %}
{% client %}(what time is it){% endclient %}
{% response %}{% call time %}{% endresponse %}
{% endblock %}
The response is simply "time" instead of the result of calling time. When I add a dummy variable and use {% call time:0 %}
it works well.
While importing
from chatbot import Chat, reflections, multiFunctionCall
following error coming.
Stacktrace for the error:
File "/home/jsahil/chat_app/alpha/views.py", line 3, in
from chatbot import Chat, reflections, multiFunctionCall
File "/home/jsahil/anaconda3/envs/fastai-cpu/lib/python3.6/site-packages/chatbot/init.py", line 4, in
from .spellcheck import correction,WORDS
File "/home/jsahil/anaconda3/envs/fastai-cpu/lib/python3.6/site-packages/chatbot/spellcheck/init.py", line 15, in
WORDS = Counter(words(open(path.join(path.dirname(path.abspath(file)),'words.txt')).read()))
File "/home/jsahil/anaconda3/envs/fastai-cpu/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6490626: ordinal not in range(128)
Please suggest
Hey dude!
I looove your project, and want to integrate this amazing module into my discord bot.. Is there a way to train it by chatting with it? And also, I have read some issues here, and would say that some docs would be really really really appreciated... And also would be better if u can tell how can I use the learning things so that it remembers different things of each person....
Sorry for all these requests, but also, thanks in advance!
Thanks so much for the bot it is very helpful to me
There are a number of functions that I do not understand how and for what their use and you may be able to add a brief explanation
Hi, I wrote an extensible chatbot for which developers can add dialogs including the corresponding python modules. So far, I can create a Chat instance using one main template and a default template. It would be nice if I could optionally specify a main folder so that your fantastic library loads all template files from this folder.
Describe the bug
After importing demo from chatbot as shown in demo. When I run the function demo()
. I get this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Babban\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\chatbot\__init__.py", line 827, in demo
Chat().converse(firstQuestion)
File "C:\Users\Babban\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\chatbot\__init__.py", line 103, in __init__
elif 'unicode' in __builtins__.__dict__ and type(pairs) == __builtins__.__dict__['unicode']:
AttributeError: 'dict' object has no attribute '__dict__'
Hi. I want to change the chatbot's name from "ChatBot" to "something".
How should I do this?
Describe the bug
After cloning the code, installing the setup file when I run the demo code for wiki search, I am getting ImportError: cannot import name 'register_call' from 'chatbot'
error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
code should run
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
from chatbot import Chat, register_call ImportError: cannot import name 'register_call' from 'chatbot'
Describe the bug
When I do, from chatbot import Chat
, it raises an error
To Reproduce
Steps to reproduce the behavior:
from chatbot import Chat
Expected behavior
It should import without any error
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Traceback (most recent call last):
File "main.py", line 2, in
from chatbot import Chat, register_call
ImportError: cannot import name 'Chat' from 'chatbot' (/opt/virtualenvs/python3/lib/python3.8/site-packages/chatbot/init.py)
This is the error
Hi, is it possible to access and set a memory variable from outside the template in the python code? It would be nice to have this feature.
Is there any way I can handle the chatbot's response using a middleware function or something like that?
Great repo by the way :)
So im trying to transfer this bot to window with text, but i really dont know how?
I wrote a bot that speaks German. Whenever the bot does not understand, it generates an English answer from the English default.template. I could not find a way to avoid that. Can you help me out?
Thanks so much for the last update
I would love to hear if the update also came up for PIP
I'm waiting for him
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.