GithubHelp home page GithubHelp logo

herpress_clssification's Introduction

Herpress_Clssification

EDA and Classification

Task 2 - Classification

We start the process by: Using the Hespress Dataset NLP, particularly the stories, to perform exploratory data analysis, gain insights, and comprehend the data properly.

1. Text Preprocessing:

  • Tokanization
  • Remove Non-Arabic words
  • Remove Tashkeel
  • Remove Punctuations
  • Remove Digits
  • Remove URLS if found in the text

2. Feature Extraction :

This dataset contains text so that we can manipulate this text, we must convert it into numerical values before modeling, we used TF_IDF to get the feature from the text and classify which text belongs to the topic. TF_IDF deals in a good and direct way with text that can get the unique words and give these words more importance and it is best for Herpress data which in each topic contains different words expressing the topic.

3. Split the Data:

Divide the dataset into 80% for training and 20% for testing sets. The training set is used to train the model, while the testing set is used to evaluate its performance on unseen data.

4.Modelling

At the stage we used classification model Logistic Regression to classify the topics, the accuracy of the LR is 85.45% indicating that it correctly classifies 85% of the instances in the test set, also by displaying confusion matric and classification report.

5.Model Evaluation:

the accuracy of the Logistic Regression is 85.45% indicating that it correctly classifies 85% of the instances in the test set, also by displaying confusion matric and classification report

herpress_clssification's People

Contributors

nadamontasser 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.