Giter Site home page Giter Site logo

annotation_flow's Introduction

annotation_flow

A tool that helps the user to revise an annotated text dataset with a dynamic interface that minimizes noise on the revision process

Execution

uvicorn main:app --reload

Requirements

The interface have four screens:

  • The first screen load a dataset, its just a drag&drop file

    • the file must be on json format containg a list of strings
    • image
  • The second screen determines the set of possible classes to annotate, and maps them to numbers. When finished the user press a button that leads to the third screen

  • The third screen is a loading screen. It displays a progress bar with the number of messages processed versus the total ex.: 190/2000

  • The forth screen displays the next record from the file to be revised

    • The text is on a scrollable textbox
    • There is a side bar with a numbered list of possible classes each item contains a checkbox
      • there's a top checkbox to mark or dismark all checkboxes
    • the user may pick the desired classes from the list on the navbar
    • the text may be automatically classified by a simple classifier running on background
      • this feature can be enabled or disabled by a checkbox on the top of navbar called auto-classify
    • the user may then proceed to the next or return to previous record with arrow keys
      • right arrow accepts the classification, it animates the process by painting the border of the box green and moving it right outside the screen and bringing a new one from the left
      • left arrow goes back to the previous record, it animates the process by painting the border of the box red and moving it left outside the screen and bringing a new one from the bottom
      • up arrow goes back to the previous record, it animates the process by moving the box bottom outside the screen and bringing the old one from the top
      • down arrows skips current box and gets the next, it animates the process by moving the box up outside the screen and bringing a new one from the bottom
    • the number of annotated records is displayed on a top bar with accepted/rejected counts
    • There is a save button at the top bar that saves the revisions as a jsonl file with three keys "text", "class" and "revision"
    • There is a load button at the top bar that allows to load previously revised records
    • There is a get revised button that retuns only the rows that were annotated as correct

Technical Details

We have a python backend + html5 frontend

Backend

The backend has the following functions

  • Load File: check if the jsonl file meets the requirements, updates reference on memory
  • Next Sample: returns the next sample to be annotated, text and class
  • Previous Sample: returns the last annotated sample, text and class
  • Annotate: receives a row number and a revision value, it stores the values on memory on a list
  • Load Annotation: check if the jsonl file meets thre requirmenets, updates annotation reference on memory
  • Make Revised: retrieve the jsonl rows that were annotated as correct and makes a new file to be downloaded

Frontend

the frontend has two pages, home page loads the file, second page begins revision process

annotation_flow's People

Contributors

rocharafaelh avatar rocharhs avatar

Watchers

 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.