Skip to main content

streamlit-annotation

Streamlit Text Annotator

PyPI version Downloads Downloads Downloads

Streamlit Text Annotator is a Streamlit component that allows you to annotate text.

Demo

Open in Streamlit

Install

pip install st-text-annotator

Quick Use

Create an example.py file

from st_text_annotator import StTextAnnotator

text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et hendrerit orci. Praesent auctor malesuada lobortis. Suspendisse ac elit bibendum, congue tellus vel, ornare ipsum. Mauris at tellus in turpis aliquet cursus."

StTextAnnotator(text)

Run:

streamlit run example.py

Output:

{
  "annotations": [
    [
      {
        "start": 0,
        "end": 5,
        "label": "Lorem"
      },
      {
        "start": 12,
        "end": 26,
        "label": "dolor sit amet"
      },
      {
        "start": 130,
        "end": 148,
        "label": "Curabitur lobortis"
      },
      {
        "start": 309,
        "end": 319,
        "label": "nec turpis"
      }
    ]
  ]
}

Development

Install

git clone git@github.com:rmarquet21/streamlit-text-annotator.git
cd streamlit-text-annotator
pip install -e .

Run

streamlit run example.py

License

MIT

Author

Robin Marquet

Contributors

Metadata

Release files for st-text-annotator 0.3.4

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-text-annotator 0.3.4
File Size Uploaded Provenance Actions
st_text_annotator-0.3.4.tar.gz 405.5 kB Without provenance Details for st_text_annotator-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for st-text-annotator 0.3.4
File Interpreter ABI Platform Actions
st_text_annotator-0.3.4-py3-none-any.whl Python 3 none any Details for st_text_annotator-0.3.4-py3-none-any.whl

Total release size: 818.0 kB

Release files / st_text_annotator-0.3.4.tar.gz

Download URL st_text_annotator-0.3.4.tar.gz
Size 405.5 kB
Tags Source
SHA-256 checksum
How to use checksums
04ffa4df1cbe5a37f9a4f04fafbfa6817187335613059b31e2a7370dbeea2ec1
BLAKE2b-256 checksum
How to use checksums
96c5025f66619a3ed090e7f1d71aa701f37582466e9c3399ed4715dc32c27810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

Release files / st_text_annotator-0.3.4-py3-none-any.whl

Download URL st_text_annotator-0.3.4-py3-none-any.whl
Size 412.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a0e46262b4e053e4395c609a574b4438f8369ea60cf0c96c19cb4685193e93a
BLAKE2b-256 checksum
How to use checksums
7483941f23e68833e79b1241c34d582b2143268db709cadbe9304f87012e3099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

Security for st-text-annotator 0.3.4

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