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

NER Template Not Working as Expected #6886

Closed
eschaffn opened this issue Jan 10, 2025 · 2 comments
Closed

NER Template Not Working as Expected #6886

eschaffn opened this issue Jan 10, 2025 · 2 comments

Comments

@eschaffn
Copy link

The NER template shows the label name inside the highlighted text region as shown here:

image

This is also how the interactive example works here. This makes it a lot easier to keep track of which color is which label, and makes annotating much quicker.

However, when creating an NER labeling project using the template my UI looks like this:

image

The highlighted text regions don't show the label names.

I tried copying the XML code from the web page but both the default template and the copied XML behave the same for me.

I'm using the following label studio version:

{
  "release": "1.14.0.post0",
  "label-studio-os-package": {
    "version": "1.14.0.post0",
    "short_version": "1.14",
    "latest_version_from_pypi": "1.14.0.post0",
    "latest_version_upload_time": "2024-11-13T08:08:53",
    "current_version_is_outdated": false
  },

  "label-studio-os-backend": {
    "message": "explicitly add setuptools to build",
    "commit": "1873abacbe2b13c6e81483c377052a8ddf400a17",
    "date": "2024/11/13 01:48:45",
    "branch": "",
    "version": "1.14.0.post0+0.g1873aba.dirty"
  },

  "label-studio-frontend": {
    "message": "explicitly add setuptools to build",
    "commit": "1873abacbe2b13c6e81483c377052a8ddf400a17",
    "date": "2024-11-13T06:48:45.000Z",
    "branch": "develop"
  },

  "dm2": {
    "message": "explicitly add setuptools to build",
    "commit": "1873abacbe2b13c6e81483c377052a8ddf400a17",
    "date": "2024-11-13T06:48:45.000Z",
    "branch": "develop"
  },

  "label-studio-converter": {
    "version": "1.0.7"
  }
}

Looking at the release notes, not being on 1.15.0 shouldn't be the issue however.

@heidi-humansignal
Copy link
Collaborator

Hello,

You can add attribute in Text tag called showLabels and set it to true. This will show the labels inside the region (https://labelstud.io/tags/text). Please let us know if this works for you.

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

@eschaffn
Copy link
Author

Thank you so much! Sorry for missing that in the docs, I didn't see the showLabels tag in any of the templates code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants