GithubHelp home page GithubHelp logo

jokerni / newsarticleclustering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krisaju95/newsarticleclustering

0.0 2.0 0.0 49 KB

Semi-supervised Learning model to cluster online news articles into genres

License: GNU General Public License v3.0

Python 100.00%

newsarticleclustering's Introduction

News Article Clustering

Final Year Project | National Institute of Technology, Calicut

Arjun Krishnamoorthy & Akshay K. Patil | Comp. Science & Engg.

A Semi-supervised learning model to categorize online news articles into genres. The model creates an initial structure of clusters to be used for classifying any further articles into the specified genres.

Module 1 - Pre-Processing:

  • Simple model: Extract valid words after removal of non-ASCII characters

  • Advanced Model: Usage of NER and WordNet libraries. Words are tagged with their POS and then categorized into entities like Names, Places, Organizations etc., i.e., proper nouns and common nouns (using NER). The extracted common nouns are converted into lemmatized form (using WN).

Module 2 - Word Counts:

Calculates the frequency of each word from the expected vector space (feature set). The vector space consists of the union of all the words that were obtained after pre-processing all the documents that were fed to module 1.

Module 3 - Calculating Tf-Idf:

Each word in the vector space is assigned a weight for every document based on its TfIdf score.

Module 4 - Create Feature Set:

Thresholding is performed to reduce the effect of words having low TfIdf scores. Dimensionality reduction is then performed to remove words from the vector space if they have a score of 0 for all documents in the data set. The remaining words are used as the final feature set and the document vectors are shortened accordingly. (If you do not wish to add a threshold, set the value to 0)

Module 5 - Cosine Similarity:

Calculate the cosine similarity for every pair of documents in the dataset

Module 6 - Selection of seeds for clustering:

Select some pre-classified seeds to calculate the initial centroid positions for Module 7. These are selected based on their feature coverage, i.e., the sum of the magnitudes on each axis for every vector.

Module 7 - SK Means Clustering:

Performs Spherical K-Means Clustering on the documents and returns k clusters.

Module 8 - Accuracy Check:

Since we have also classified the data based on our own interpretation or that provided by the news source, we can check the accuracy of the model. It computes a confusion matrix along with standard accuracy measures like F1 score.

newsarticleclustering's People

Contributors

akshaykp avatar krisaju95 avatar

Watchers

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