I’m excited to share some updates to my text highlighting and labeling component! This tool is your go-to resource for easy and efficient annotation. I plan to improve it and add new components in the future.
Check it out:
GitHub (Don’t forget to the repo to support!): link
Highlighting Tools: Make your text stand out! See how it works:
from streamlit_annotation_tools import text_highlighter
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."
annotations = text_highlighter(text)
Labeling Tools: Organize and categorize with ease!
from streamlit_annotation_tools import text_labeler
text = "Yesterday, at 3 PM, Emily Johnson and Michael Smith met at the Central Park in New York to
discuss the merger between TechCorp and Global Solutions. The deal, worth approximately 500
million dollars, is expected to significantly impact the tech industry. Later, at 6 PM, they joined a
conference call with the CEO of TechCorp, David Brown, who was in London for a technology
summit. During the call, they discussed the market trends in Asia and Europe and planned for the
next quarterly meeting, which is scheduled for January 15th, 2024, in Paris."
labels = text_labeler(text)
Your stars on GitHub are much appreciated! They help keep the project growing.
Q. ChatGPT is a … developed by … and launched on November 30, 2022. Based on a … , it enables users to refine and steer a conversation towards a desired length, format, style, level of detail,
Answers:
a. chatbot
b. OpenAI
c. large language model
The use can drag and drop the answers to the Question section…
Hope it makes sense.
Thanks
Sai
Nice - would be great if you can support import and export of annotations, and stepping through annotations. Also good if the annotation format worked with a tool like spaCy, and also to allow annotations to be run iteratively over multiple sessions. Some sort of evaluation/training mode would be great, where the annotations can be supplied by an external model (essentially a variation of the import + stepping through).
For the annotation import and export part, this is already the case, but it’s true that I forgot to document it, but it’s still possible to find the implementation on the GitHub repo in examples.
text = "Lorem ipsum dolor sit et amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
highlights = [
[
{"start": 0, "end": 5, "label": "Lorem"},
{"start": 12, "end": 17, "label": "dolor"},
],
[
{"start": 6, "end": 11, "label": "ipsum"},
{"start": 18, "end": 21, "label": "sit"},
],
]
highlights = text_highlighter(text, highlights)
As for the rest, I’ll have to read up on spacy to learn more first.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.