Skip to main content

molabel

A simple annotation widget for labeling examples with speech recognition support.

For an interactive demo check GitHub pages here.

Features

localhost_2719_

  • Interactive annotation: Yes/No/Skip buttons with Previous navigation
  • Keyboard shortcuts: Alt+1-6 for quick navigation and actions
  • Gamepad support: Controller input with push-to-talk speech
  • Notes field: Text annotations with live speech transcription

Installation

uv pip install molabel

Usage

from molabel import SimpleLabel

def render_example(example):
    return f"<p>{example['text']}</p>"

# Create annotation widget
widget = SimpleLabel(
    examples=[{"text": "example 1"}, {"text": "example 2"}],
    render=render_example,
    notes=True
)

# Display in notebook
widget

# Get annotations after labeling
annotations = widget.get_annotations()

Custom Shortcuts

widget = SimpleLabel(
    examples=examples,
    render=render_example,
    shortcuts={"Alt+Q": "prev", "Alt+W": "yes"},  # Custom keyboard
    gamepad_shortcuts={"button_7": "yes"}  # Custom gamepad
)

If you're keen to understand your gamepad better and how to map the buttons to actions, you can check this notebook. It will show every name of every button that you press in real time via the browser gamepad API.

Controls

  • Mouse: Click buttons or microphone icon
  • Keyboard: Alt+1 (prev), Alt+2 (yes), Alt+3 (no), Alt+4 (skip), Alt+5 (focus notes), Alt+6 (speech toggle)
  • Gamepad: Button mappings with push-to-talk speech on left trigger

You can assign keyboard/gamepad shortcuts to the widget for all the possible actions:

  • prev - go to the previous example
  • yes - label the example as yes
  • no - label the example as no
  • skip - skip the example
  • focus_notes - focus the notes field
  • speech_notes - start/stop speech recognition

Requirements

  • Modern web browser for Speech Recognition/Gamepad API support
  • Microphone access for speech features

Metadata

Release files for molabel 0.1.5

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

Source distribution (sdist)

Source distribution for molabel 0.1.5
File Size Uploaded Provenance Actions
molabel-0.1.5.tar.gz 62.5 kB Without provenance Details for molabel-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for molabel 0.1.5
File Interpreter ABI Platform Actions
molabel-0.1.5-py3-none-any.whl Python 3 none any Details for molabel-0.1.5-py3-none-any.whl

Total release size: 125.4 kB

Release files / molabel-0.1.5.tar.gz

Download URL molabel-0.1.5.tar.gz
Size 62.5 kB
Tags Source
SHA-256 checksum
How to use checksums
834f991a0ddda88480a3ef8c6cbfc12dc51ae5c2d270657ae8faa3db0aca2216
BLAKE2b-256 checksum
How to use checksums
1ab57b71752323b6841fc05d69bc5c7876f53be37751809ff48550f5a434f2ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / molabel-0.1.5-py3-none-any.whl

Download URL molabel-0.1.5-py3-none-any.whl
Size 62.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
534b5372d793dfed3b2fc6a50a372522fced42368bba4630744ef54576f41067
BLAKE2b-256 checksum
How to use checksums
909e8a1e2380fa5ad1ab63efbaa2f4d4e9613e65b6318e4eabd30ee7ce578852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for molabel 0.1.5

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