GithubHelp home page GithubHelp logo

kbnlresearch / genre-classifier Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 132 KB

Genre classifier for Dutch historical newspaper articles.

Home Page: http://www.kbresearch.nl/genre/

License: GNU General Public License v3.0

Python 100.00%
genre classifier svm news newspaper

genre-classifier's Introduction

Genre Classifier

Genre classifier for Dutch historical newspaper articles.

Background

The Genre Classifier was created in collaboration with Frank Harbers (RUG) in the context of his KB Researcher-in-residence project Discerning Journalistic Styles. It is a first attempt to automate the classification of historical newspaper articles according to genre by examining features such as article length, personal pronouns, adjectives and named entities appearing in the text. The classifier was trained and evaluated using an existing labeled dataset (not publicly available), resulting in a prediction accuracy of approximately 65%.

Usage

The trained classifier can be applied to a folder of utf-8 encoded plain text files using the prediction script provided:

./predict.py [input_dir]

To view the features calculated for a single article run the article script with the article url as an argument:

./article.py [article_url]

Demo

An online demo visualizing the classifier result for a single article is available at http://www.kbresearch.nl/genre/.

genre-classifier's People

Contributors

jlonij avatar stitchplus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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