Code Monkey home page Code Monkey logo

arabic-chatbot's Introduction

Arabic chatbot for cloths store

A simple website featuring a chatbot for hypothetical clothing store.

Getting Started

Prerequisites

The core of the bot is built using python 3.5.1 with keras library, so you should have python installed.

Installing

You should install the libraries written in recs.txt

Warning: If you have h5py library version 2.8.0 or higher, it may not load the weights correctly.

You may first create a virtual environment for the project:

On Windows:

Open a new cmd window and run:

cd path/to/project
python -m venv my_env         \\ Create venv
my_env\Scripts\activate.bat   \\ Activate venv

Before installing libraries, you should upgrade pip to the latest version to avoid potential errors:

python -m pip install --upgrade pip

Then, install required libraries:

pip install โ€“r recs.txt

Training

Before training, change the data files paths to your data files path. The model was trained using google colab so the paths were set to google drive to a folder named Fashion.

After setting the paths correctly, run the file train.py from python IDLE or from cmd by running the following:

python train.py -ep 100 -bs 64 -n 256

Note: Each of the command line arguments has a default value so you may remove it from the command if you want.

Usage

To run the website, right-click at server.py and choose Edit with IDLE, then run the script F5. Or, you may run it from cmd by running the following command at the same project directory:

python server.py

Built With

  • python - interpreted high-level programming language for general-purpose programming.
  • keras - a high-level neural networks API.

Contributing

I appreciate any effort to improve the project and would be grateful for any small note that makes the project better and more professional.

TODO

  • Weights file needs update
  • Additional commenting needed
  • Use Reactjs for frontend
  • Use Django or Symfony for backend
  • Enhancing the keras model

arabic-chatbot's People

Contributors

anood avatar jihad92 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.