Code Monkey home page Code Monkey logo

arabic-fatwa-chatbot-'s Introduction

Arabic-Fatwa-ChatBot

In this project, I created an Arabic Fatwa ChatBot that aims to answer a different question

1. Scraping the Data

The data scraping was one of the most time consuming parts of this project because it’s difficult to navigate through the nested tables (the HTML). However, BeautifulSoup made it quite simple to grab the HTML and parse through it.

In this project I scraped from islamweb.net, I decided to start by scraping top of all Fatwa so that I could build out my chatbot. When I looked at the page that includes all fatwas. As a first step, I noticed that I need to collect all linkes of all fatwas then go into each fatwa to collect the needed information (Question and answer).

2. Data Cleaning

The next focus was to clean the data to build a better chatbot. I started by importing the CSV file that I had created into my Python environment then I read this file using dataframes.Next, I worked with the variables to make sure that they were able to be processed by applied the following:

  • Remove duplicated fatwa
  • Remove special charecter
  • Remove number and stop words
  • Remove harakat
  • Stemming
  • Shuffling Data

3. Building the Arabic chatbot

I used buildin library

4. Resource Description

For more details please viste Project Resource. This repo contains the following:

  • scraping and cleaning code file.
  • building chatbot code file.
  • Project-05 pdf file that describe the project in details.

Thank you for reading!

arabic-fatwa-chatbot-'s People

Contributors

lubnaalhenaki avatar

Stargazers

 avatar Abdullah Habberrih avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

xposed73

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.