Coder Social home page Coder Social logo

data_classifier's Introduction

Manual Data Classifier

A web app based on flask for data classification manully.

You just need to put the source data json file and modified the config.json file, and you can browse your every data item via brower and classified them easily.

Setup

  1. install all requirements
pip install -r requirements.txt
  1. fill in config.json and put the source data file to data/source/ directory
  2. run the flask app and start your job on website
python app.py

Configuration

According to your need to modify the config.json

{
    "sourceDataPath": "data/source/data.json",//source data path
    "itemId": "bug_id", // id used to identify every data item
    "fields": [//which fields to display, if is [] then display all fields
        "bug_id",
        "creation_ts",
        "short_desc",
        "product"
    ],
    "longFields": [ // fields need to display separately, 
        "long_desc" // which will keep the line break and blank
    ],
    "splitFields": [ // fileds containing several parts which
        {            // is separated by split delimiter
            "field": "comment",
            "split": "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
        }
    ],
    "result": "data/results.json", // results store path
    "resultOptions": [
        {
            "field": "field1", // type's filed name
            "mutiple": false, // support choose mutiple option
            "options": [ // options which can be choosed
                {
                    "label": "label1", 
                    "value": 1
                },
                {
                    "label": "label2",
                    "value": 2
                }
            ]
        }
    ]
}

result

results is stored as a json file.

{
  "12266": {
    "field1": 1,
    "field2": [ // multiple options
      1,
      2
    ]
  }
}

TODO (Maybe)

  1. Improve documentation
  2. Support import CSV source file and export CSV results
  3. A safer approach to save results
  4. Concurrently used to classified data by several people

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.