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.0.1.tar.gz
(840.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ner_span_annotator-0.0.1.tar.gz.
File metadata
- Download URL: ner_span_annotator-0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415bd78b962196c634147ebb29f405391c4e32170cb128e41b1b21370a3f2f52
|
|
| MD5 |
48067997256d6b86cb55eea26983ff70
|
|
| BLAKE2b-256 |
70a7416a59deb06661a883e0a89247820cfa388734a4b77aee48e628997a6181
|
File details
Details for the file ner_span_annotator-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ner_span_annotator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 845.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
914b05a0f1ec3de7080c96bf291437943694f9c32693845ef92aba93f140b6bd
|
|
| MD5 |
f473807157c91a9e70fdf5f3f594dea4
|
|
| BLAKE2b-256 |
4f4ed7d91fefa540b3caa6a1a11f903ef43f9287d868a7ff62e7ded60b788cce
|