Skip to main content

Streamlit component that allows you to display and edit annotated text

Project description

streamlit-annotation-editor

This Streamlit component allows you to display and edit annotated text.

Installation instructions

pip install streamlit-annotation-editor

Usage instructions

import streamlit as st
from annotation_editor import (
    annotation_editor,
    AnnotationData,
    Annotation, 
    EntityType
)

annotation_data = [
     AnnotationData(
           text="A line of text containing several words.",
           annotations=[
                Annotation(start=0, end=1, entity_type="SINGLE_LETTER", confidence_score=0.99, text="A"),
                ...
           ]
     ),
     ...
]

entity_types = [
    EntityType(name="PERSON", primary_color="#e5381d", secondary_color="#c12b14"),
    ...
]

edited_annotation_data = annotation_editor(annotation_data, entity_types)

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

streamlit-annotation-editor-0.1.3.tar.gz (415.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_annotation_editor-0.1.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file streamlit-annotation-editor-0.1.3.tar.gz.

File metadata

File hashes

Hashes for streamlit-annotation-editor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d89aaa294df8dcf27b10a8f89e99a397d71ea0ceed7324edc62ae12e3aa80806
MD5 b9ac16b549e4e60a52613166f26c7233
BLAKE2b-256 4487edb0d519bd2fdd58dc0fdb5588e4e5c0c8b8b8f4516cb1ddbeb59e9e20d9

See more details on using hashes here.

File details

Details for the file streamlit_annotation_editor-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_annotation_editor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d39def25b4558f624b193a758e2eb37279f3417c4f43a49d77f0d1990d6abefa
MD5 0adcf720fb60ff4ba92e5176b9f7cc33
BLAKE2b-256 9737132105a2a4be8aa88691aa950b0241683209f7138cf3ef0eb8a11401b658

See more details on using hashes here.

Supported by

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