Streamlit component for text highlighting
Project description
Text Highlighter
A Streamlit component for annotating text using text highlighting. Useful for NLP tasks.
Installation
You can install the Text Highlighter package using the following command:
pip install --upgrade text-highlighter
Usage
The package can be used as follows:
from text_highlighter import text_highlighter
import streamlit as st
# Basic usage
result = text_highlighter(
text="Cats and dogs in the Netherlands are awesome!", labels=["ANIMAL", "LOCATION"]
)
# Show the results
st.write(result)
In the example.py
script you can find the above example. You can run the example as follows:
streamlit run example.py
The output will look like this:
Contribute
Feel free to add a pull request or open an issue if you have any questions or suggestions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text-highlighter-0.0.7.tar.gz
(542.2 kB
view hashes)
Built Distribution
Close
Hashes for text_highlighter-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 551d54dbd08ec8a4a768dce0c8f4ab8c2a6f54c529fb1bf798f89f9bc4f69510 |
|
MD5 | 49b4e904d5000b74938bb8f3b6e360b5 |
|
BLAKE2b-256 | ed60328fa26946abbf2452adf37a4a1f04565c740fd553b0b8262460417c4e2d |