GithubHelp home page GithubHelp logo

faezeh-gholamrezaie / persian-news-article-classification Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.7 MB

This repository focuses on automatic categorization of documents, involving the assignment of categories to texts based on their content. We will utilize pretrained deep learning models ParsBERT and LaBSE for this purpose.

Jupyter Notebook 98.81% Python 1.19%
classification labse news news-classification nlp parsbert python pytorch

persian-news-article-classification's Introduction

Persian News Article Classification

Persian News Classification Based on the article

ITRC, IRAN, Tehran


Corpus

This project involves the collection of two datasets: one from Fars News and the other from Tasnim.

Description of the Fars News Dataset :

category Number
culture 6000
sports 5999
politics 5994
economy 5992
social 5991

Description of the Tasnim Dataset :

category Number
culture 5750
sports 5347
politics 5483
economy 6095
social 5161

Aggregated dataset used :

datasets


Deep Learning Models

Two Deep Learning Pretrain model have been experimented:

category Precision Accuracy
ParsBERT: Transformer-based Model for Persian Language Understanding 0.85 0.83
Language-agnostic BERT Sentence Embedding (LaBSE) 0.85 0.84

Evaluation (Confusion matrix)

Confusion matrix using the best model ParsBERT:

Confusion matrix

category label
culture 0
economy 1
politics 2
social 3
sports 4

Team mate

Marjan Godarzi

Elham Ghasemi

Gholshid Ranjbaran

Alireza Parvaresh

Faezeh Gholamrezaie

persian-news-article-classification's People

Contributors

faezeh-gholamrezaie avatar parvvaresh avatar

Stargazers

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