Giter VIP home page Giter VIP logo

reuters21578's Introduction

reuters21578

Python script to convert the Reuters-21578 dataset into an ARFF file for MEKA.

Original data

Download the original data from here:

http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html

And extract it.

Install

  • Clone repository

    git clone https://github.com/fracpete/reuters21578.git
  • Change into repo

    cd reuters21578
  • Create virtual environment

    virtualenv -p /usr/bin/python3 venv
    ./venv/bin/pip install .

Generate ARFF

You can use the reuters-generate console script to generate the ARFF file:

usage: reuters-generate [-h] -t FILE -d DIR -o FILE

Generates a MEKA ARFF file from the Reuters 21578 SGML files.

optional arguments:
  -h, --help            show this help message and exit
  -t FILE, --topics_file FILE
                        the file with all the topics (one per line).
  -d DIR, --data_dir DIR
                        the directory with the .sgm files.
  -o FILE, --output_file FILE
                        the ARFF file to generate.

reuters21578's People

Contributors

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