Skip to main content

Streamlit component that allows you to visualize and modify NER annotations

Project description

ner-span-annotator

Streamlit component that allows you to visualize and modify NER annotations

Installation instructions

pip install ner_span_annotator

Usage instructions

import streamlit as st

from ner_span_annotator import ner_span_annotator

spans = [
    {"start_token": 3, "end_token": 6, "label": "ORG"},
    {"start_token": 5, "end_token": 6, "label": "GPE"},
]
tokens = ["Welcome", "to", "the", "Bank", "of", "China", "."]

result = ner_span_annotator(tokens=tokens, spans=spans, labels=["ORG", "GPE"])

st.json(result)

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

ner_span_annotator-0.1.1.tar.gz (840.0 kB view details)

Uploaded Source

Built Distribution

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

ner_span_annotator-0.1.1-py3-none-any.whl (845.8 kB view details)

Uploaded Python 3

File details

Details for the file ner_span_annotator-0.1.1.tar.gz.

File metadata

  • Download URL: ner_span_annotator-0.1.1.tar.gz
  • Upload date:
  • Size: 840.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ner_span_annotator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b73c7881669116ce847429d29b1e586a73f905b60fdf3fcf2f93fc3c3be162f2
MD5 ca33edeb8a7f457c03b7addb93823124
BLAKE2b-256 2d0f1fb665c50569407f0edd5745ed70d75212c215630c573fd5f7856b66fe1c

See more details on using hashes here.

File details

Details for the file ner_span_annotator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ner_span_annotator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 435c9189c461dffa997aa9d048d379fe02bd3f7549c1ae5b3f1b55298bb07250
MD5 d3d999b3bb30307844e055be3c3af7ff
BLAKE2b-256 e27484661444ec5e07b5480f7b2de5c57355031a6fa2d137900310165a06251d

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