Giter Club home page Giter Club logo

annotationapps's Introduction

Streamlit based Annotation App

Main goal - customizability of interface

Can be used to show long documents, short documents , medium documents. Can use checkboxes, select boxes, highlights, text boxes in the same interface in any order. Data can be input in any format.

Installation

pip install git+https://github.com/successar/AnnotationApps.git#egg=AnnotationApps

Usage

Need to provide two functions -

  1. get_dataset -- Returns your data . This should be a dict of type Dict[str, Any] . The key of the dict identify the data point for annotation, value can be anything.
  2. display -- Create a display for your data point. Use widgets from AnnotationApps.html_elements .

Serving

  1. export DBPATH=... add a path to the db where you want to store the annotations.
  2. streamlit run <path to annotator file> --server.port <port number>
  3. At end, when you want to get the annotations, just do python -m AnnotationApps.export_to_jsonl <dbpath> <file-prefix> .
    • dbpath : Path to DB
    • file_prefix : File prefix when exporting tables in db. All tables are exported in jsonl format . The file for each table is of form <file prefix>.<table-name>.jsonl

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.