Skip to main content

JupyterLab tool for data annotations for machine learning routines

Project description

AntAnnotator

JupyterLab tool for data annotations for machine learning routines.

Just drop your python data into widged and label it.

AnnotationWidget.png

Features

Data persistence Data is automatically persisted on disk in .json format.

UI Annotation UI witch allow to do annotation

Usage example

from antannotator.annotation_controller import AnnotationController
from antannotator.persistence import AutoEventStorage, AutoAnnotationTaskStorage, AnnotationSample

# Select directory where annnotation task data will be stored

event_storage = AutoEventStorage.get_event_storage("/tmp/annotator/events")
task_storage = AutoAnnotationTaskStorage.get_task_storage("/tmp/annotator/tasks")
controller = AnnotationController(task_storage=task_storage, event_storage=event_storage)

# 
options = {"literature": "Classical literature",
            "songs": "20th Century Songs", 
            "other":"Other"}


# load samples to annotate
samples = [ AnnotationSample(sample_id=f"id_1", 
            task_data=f"We passed upon the stair\nWe spoke of was and when\nAlthough I wasn't there\nHe said I was his friend", 
            available_options=options, 
            hidden_info=None,
            visible_info=None),
        AnnotationSample(sample_id=f"id_2", 
            task_data=f"It was many and many a year ago,\nIn a kingdom by the sea", 
            available_options=options, 
            hidden_info=None,
            visible_info=None),
        AnnotationSample(sample_id=f"id_3", 
            task_data=f"On a dark desert highway, cool wind in my hair\nWarm smell of colitas, rising up through the air", 
            available_options=options, 
            hidden_info=None,
            visible_info=None)]

controller.append_samples(samples)

# start annotations process
controller.do_annotaions()

Installation

pip install antannotator

Roadmap

  • Multichoice text classification
    Multiclass, multichoise text classification

  • One choice text classification
    One choice classification. (Task adavance immediately user celect a option)

  • Free input
    Free user input. (For example for summarization task)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antannotator-0.0.3.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

antannotator-0.0.3-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page