Skip to main content

jupyter json annotator

This package provides an annotation UI for arbitrary dataset in json format.

Install

pip install jupyter-annotator

Usage

1. Normal usage

from jupyter_annotator import Annotator

problems = [{
    "id": 2,
    "problem": "Where would I not want a fox? (a problem from coommonsenseQA)",
    "options": {
        "a": "hen house", "b": "england", "c": "mountains", "d": "english hunt", "e": "california"
    },
    "answer": "a",
    "filtered": "xxxxxxxxxx"
}]

anno = Annotator(problems)
anno.start()

2. Custom fields + skip + filter

  • Custom fields: add custom field in the format (field_name, type, max_length)
  • Skip fields: the fields which will not appear in the form but still in the preview so that they won't be edited.
  • Filter fields: the fields that won't appear either in the form or in the preview
problems = [{
    "id": 2,
    "problem": "Where would I not want a fox? (a problem from coommonsenseQA)",
    "options": {
        "a": "hen house", "b": "england", "c": "mountains", "d": "english hunt", "e": "california"
    },
    "answer": "a",
    "filtered": "xxxxxxxxxx"
}]

custom_fields = [("rationale", str, 100)] 
skip_fields = ['id'] 
filter_fields = ["xxx"]

annotator = Annotator(problems, custom_fields=custom_fields, skip_fields=skip_fields, filter_fields=filter_fields)
annotator.start()

References

Metadata

Release files for jupyter-annotator 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-annotator 1.3.0
File Size Uploaded Provenance Actions
jupyter-annotator-1.3.0.tar.gz 5.3 kB Without provenance Details for jupyter-annotator-1.3.0.tar.gz

Release files / jupyter-annotator-1.3.0.tar.gz

Download URL jupyter-annotator-1.3.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
232bf93feb556f267486491a02f0135caf1b33e4c1ad972c8f4a9aa797b32c63
BLAKE2b-256 checksum
How to use checksums
109e41df00c12e92218dc1d380d1f8427cd0e7b10993d94e00b89d551993116a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for jupyter-annotator 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page