Code Monkey home page Code Monkey logo

omarnouih / nlp_atelier1 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 50 KB

This repository demonstrates web scraping and NLP techniques, including data extraction from a website, storage in MongoDB, and an NLP pipeline with tokenization, stop words removal, normalization, stemming, lemmatization, POS tagging, and Named Entity Recognition. Libraries used are requests, Beautiful Soup, pymongo, nltk, qalsadi, and Farasa.

Jupyter Notebook 100.00%
arabic-nlp nlp nltk scraping

nlp_atelier1's Introduction

NLP and Web Scraping Lab by Omar Nouih

This repository contains a demonstration of web scraping techniques, Natural Language Processing (NLP) pipeline, and various NLP tasks such as text cleaning, tokenization, stop words removal, discretization, normalization, stemming, lemmatization, parts-of-speech tagging, and Named Entity Recognition (NER) for Arabic language text.

Table of Contents

Objective

The main objective of this project is to demonstrate proficiency in web scraping and NLP techniques for Arabic language text. By scraping data from a website related to census processes in Morocco and applying various NLP tasks, we aim to showcase skills in data acquisition, preprocessing, and analysis specific to the Arabic language.

Tasks

  • Web scraping from www.candidature-recensement.ma to extract information about census conditions, steps, compensation, tasks, and frequently asked questions.
  • Storing the raw data in MongoDB for further processing and retrieval.
  • Preprocessing the Arabic text data through tokenization, stop words removal, normalization, stemming, lemmatization, and other techniques.
  • Performing parts-of-speech tagging and Named Entity Recognition (NER) using Farasa library for Arabic language text.

Libraries Used

  • requests: For sending HTTP requests to the website and fetching the HTML content.
  • Beautiful Soup: For parsing the HTML content and extracting relevant data from the website.
  • pymongo: For interacting with the MongoDB database to store and retrieve the scraped data.
  • nltk: For various NLP tasks such as tokenization, stop words removal, stemming, and lemmatization.
  • qalsadi: For Arabic lemmatization.
  • farasa: For Arabic language processing tasks including parts-of-speech tagging and Named Entity Recognition (NER).

Web Scraping

We utilized the mentioned libraries in Python to scrape data from the www.candidature-recensement.ma website. The scraped data includes information about census conditions, steps, compensation, tasks, and frequently asked questions.

Storing Raw Data

We stored the raw scraped data in a MongoDB database named "NLP" and a collection named "atelier". This allows for easy retrieval and further processing of the data.

NLP Pipeline

The NLP pipeline involves several preprocessing steps such as tokenization, stop words removal, normalization, stemming, and lemmatization. We applied these techniques to the scraped Arabic text data to prepare it for analysis. Additionally, we performed parts-of-speech tagging and Named Entity Recognition (NER) using the Farasa library, specifically designed for Arabic language processing.

nlp_atelier1's People

Contributors

omarnouih avatar

Stargazers

 avatar

Watchers

 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.