ahmadfaizalbh / Chatbot

Python ChatBot 💬
https://chatbot.obbne.com
MIT License
774 stars 320 forks source link

Execution #22

Closed NaterciaMR closed 4 years ago

NaterciaMR commented 4 years ago

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!

ahmadfaizalbh commented 4 years ago

do the following

Installing the package

C:\Windows\System32\Chatbot>py setup.py install

OR

C:\Windows\System32\Chatbot>pip install chatbotai

Running demo function

C:\Windows\System32\Chatbot>py
>>> from chatbot import demo
>>> demo()
Hi, how are you?
> i'm fine
Nice to know that you are fine  
> quit
Thank you for talking with me.
>>> 

Chatbot is not a command instead its a python library

NaterciaMR commented 4 years ago

thank you but now, I received this:

from chatbot import demo Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'chatbot'

thanks for your help and I'm so sorry.

ahmadfaizalbh commented 4 years ago

That means you have not installed chatbot To install chatbot execute

C:\Windows\System32\Chatbot>py setup.py install
NaterciaMR commented 4 years ago

I could do it doing the following:

C:\Windows\System32\Chatbot>python setup.py install Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

from chatbot import demo demo() Hi, how are you?

Thank you!

NaterciaMR commented 4 years ago

One last question, how can I run it in Portuguese? I have seen there is a pt.template

ahmadfaizalbh commented 4 years ago

Its Portuguese (Brazil), you can use as follows

>>> from chatbot import Chat
>>> Chat(language="pt-br").converse("Oi como você está?")

Since I don't know Portuguese (Brazil) I couldn't add any normalizer and reflections. I translated temple file using google translate for one of the user on request. If you know any language (Portuguese) and willing to spend some time you can contribute to the repo which will be helpful for many.

NaterciaMR commented 4 years ago

I'm portuguese and live in Spain (Madrid). Of course, I would like to participate. At the moment, I am doing a job about training manuals in Spanish for my college.

ahmadfaizalbh commented 4 years ago

Thats great. If you need any help feel free to email me at ahmadfaizalbh726@gmail.com

NaterciaMR commented 4 years ago

oh thanks! my email is naterciamr18@gmail.com