Skip to main content

Japanese Chatbot

Project description

nagonbot

Japanese Chatbot.

Summary

Project Description

nagonbot is a simple chatbot that "speaks" japanese. The name is a reference to a Heian period japanese writer.

Project Current Status

✅The bot is fully functional, but I'll still make some improvements to make it even better.

Setup

I recommend using a vitual environment (venv) for this project, since it's libraries are not fully optimized. Steps:

  1. Create a virtual environment in a test folder.
py -m venv ./myvenv
  1. Activate the virtual environment.
.\myvenv\Scripts\activate
  1. Install the bot inside the virtual environment as a package for simpler usage (the package is not functional yet).
pip install nagonbot
  1. Run the program inside the virtual enviroment.
from nagonbot.bot import Main

Main()
  1. Exit the virtual environment when done.
deactivate

Required Libraries

Note Please, while the package does not install all the packages automatticallly, install the following libraries (inside a virtual environment).

Keras

Install:

pip install keras

github page: https://github.com/keras-team/keras

Numpy

Install:

pip install numpy

github page: https://github.com/numpy/numpy

playsound (probably will be out)

Install (version 1.2.2 certainly works with nagonbot):

pip install playsound=1.2.2

github page: https://github.com/TaylorSMarks/playsound

fugashi

Install:

pip install fugashi

github page: https://github.com/polm/fugashi

bs4

pip install bs4

Doc: https://www.crummy.com/software/BeautifulSoup/bs4/doc/

gtts

pip install gTTS

github page: https://github.com/pndurette/gTTS

unidic-lite

pip install unidic-lite

github page: https://github.com/polm/unidic-lite

mecab-python3

pip install mecab-python3

github page: https://github.com/SamuraiT/mecab-python3

selenium

pip install selenium

github page: https://github.com/SeleniumHQ/selenium

webdriver_manager

pip install webdriver_manager

github page: https://github.com/SergeyPirogov/webdriver_manager

Project Test Package

Warning Not working yet!!!

Since it's the package is not working, it's tentatives are being uploaded in the test server of PyPi. It has a lot of versions, but none of them work properly: https://test.pypi.org/project/nagonbot/

References

Tensor Flow model was inspired from Neural Nine's video on how to make a chatbot.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nagonbot-1.0.0.tar.gz (224.0 kB view hashes)

Uploaded Source

Built Distribution

nagonbot-1.0.0-py3-none-any.whl (228.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page