Skip to main content

Streamlit Annotator

Download the package from PyPI:

PyPI version

Try the demo on Streamlit Cloud:

Open in Streamlit

Install with pip

pip install st-annotator

st-annotator is a Streamlit component usefull to annotate text, expecially for NLP and Argument Mining purposes. Based on the original project Streamlit Annotation Tools of rmarquet21.

Features:

  • 📍 Smart positioning that stays within screen bounds
  • 📊 Shows text content, label category, position, and all custom metadata
  • 🎨 Matches your custom color scheme
  • ⚡ Instant display on hover, disappears on mouse leave
  • 🔧 Supports strings, numbers, booleans, lists, and objects

New Features

  • Key parameter to text_annotator function
  • A special button to show all the annotations together
  • 🆕 Hover Popup with Metadata: Hover over annotations to see detailed information including custom metadata

Metadata Support

You can now add custom metadata to each annotation that will appear in a hover popup:

labels = {
    "Sentiment": [
        {
            "start": 0,
            "end": 20,
            "label": "This is amazing!",
            "metadata": {
                "confidence": 0.95,
                "emotion": "Joy",
                "intensity": "High",
                "source": "Customer feedback"
            }
        }
    ]
}

Quick Start

Run the example.py file:

streamlit run examples/example.py

Metadata

Release files for st-annotator 0.1.3

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

Source distribution (sdist)

Source distribution for st-annotator 0.1.3
File Size Uploaded Provenance
st_annotator-0.1.3.tar.gz 588.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for st-annotator 0.1.3
File Interpreter ABI Platform
st_annotator-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / st_annotator-0.1.3.tar.gz

Download URL st_annotator-0.1.3.tar.gz
Size 588.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1687a6655edd2138c61bd67a08b6116260e741f75c0c463724ff67442ed48d49
BLAKE2b-256 checksum
How to use checksums
e2fdd2f02195df2b0069859e93b5dfe49b106f2d212264463f27f27c7aa346f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.8 Darwin/25.1.0

Release files / st_annotator-0.1.3-py3-none-any.whl

Download URL st_annotator-0.1.3-py3-none-any.whl
Size 599.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b0b9a7f0cb6a321d9b755d5e4e367afc55fbabbbc4f3e0ff436daa9f48bb982
BLAKE2b-256 checksum
How to use checksums
d2ec8b3beaa2bae7f4e546bb8ee505db4cd8c446ea80187e24244083bc3e3966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.8 Darwin/25.1.0

Security for st-annotator 0.1.3

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