Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript library for text annotation #435

Open
3 tasks
FlorianJacta opened this issue Oct 18, 2023 · 0 comments
Open
3 tasks

Javascript library for text annotation #435

FlorianJacta opened this issue Oct 18, 2023 · 0 comments
Labels
🖰 GUI Related to GUI ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Oct 18, 2023

What would that feature address
A user requested a way to annotate text. It is used for NLP applications.

Description of the ideal solution

Related discussion: The specific problem is to annotate training data for a Rasa chatbot. The syntax follows this pattern:
[<entity-text>]{"entity": "<entity name>", "role": "<role name>", "group": "<group name>", "value": "<entity synonym>"}.

Example:
What's the balance on my [credit card account]{"entity":"account","value":"credit"}

The idea might be to add something like a selector that allows the user to mark characters and invoke a function on them (like opening up a form that contains information about the marked characters). In the example above, it could work like this:

  1. The GUI visualizes a data frame containing sentences
  2. The user selects "credit card account" in an example sentence
  3. The GUI opens a small window with a form to add the values for "entity", "role", "group", and "value"
  4. The user fills in the values and clicks a "Save" button inside that small window.
  5. The GUI calls a function that handles this dataset (e.g., replaces the sentence in a modified data frame with the annotated sentence)

From this use case, this library could work:
https://github.com/recogito/recogito-js
It can be tested here:
https://recogito.github.io/recogito-js/

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%
  • Propagate any change on the demos and run all of them to ensure there is no breaking change
  • Ensure any change is well documented
@jrobinAV jrobinAV transferred this issue from Avaiga/taipy-gui Nov 13, 2023
@jrobinAV jrobinAV added 🖰 GUI Related to GUI 🟩 Priority: Low Low priority and doesn't need to be rushed labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed
Projects
None yet
Development

No branches or pull requests

2 participants