Skip to content

Support multiple label in sequence labeling #19

Closed

Description

@pompobit

Hi,
I'm trying to annotate a sentence using different labels fro the same set of words.
For example, for the sentence:
"the dog jumps on the skateboard"
I want the following labels:
the dog -> subject
jumps -> verb
dog -> animal
the dog jumps -> action
on the skateboard -> where
skateboard -> object

I tried to create a sequence labeling project, but seems like when I select a label for a word, I can't label that word or a sentence that include that word again.
Is there a workaround to obtain what I need?

Activity

  1. jamesmf commented on Oct 17, 2018

    @jamesmf

    I would love this feature as well. I think the basic feature request would be to support adding SequenceAnnotation objects with a span that overlaps an existing SequenceAnnotation object (which I imagine is a front-end feature).

    The advanced feature (for a different issue after this is implemented) might be to nest the two labels visually or split the colors.

    But overall the ability to tag a span with more than one label seems invaluable

  2. changed the title [-]Annotate sentence using different labels for the same words[/-] [+]Support multiple label in sequence labeling[/+] on Oct 20, 2018
  3. icoxfog417 commented on Oct 20, 2018

    @icoxfog417
    Contributor

    @jamesmf thank you for clarify the original request!
    @pompobit thank you for your feature request. I changed the issue title for we grasp the request more explicitly.

  4. added a commit that references this issue on Jul 2, 2019
  5. manashmandal commented on Jan 6, 2020

    @manashmandal

    I'd love the feature as well.

  6. br-dr3 commented on Jul 23, 2020

    @br-dr3

    Any update on this?

  7. gajomi commented on Aug 19, 2020

    @gajomi

    Would this require much of anything beyond removing parts of the validation here?

    for (const entity of this.entities) {
    if ((entity.start_offset <= this.start) && (this.start < entity.end_offset)) {
    return false
    }
    if ((entity.start_offset < this.end) && (this.end <= entity.end_offset)) {
    return false
    }
    if ((this.start < entity.start_offset) && (entity.end_offset < this.end)) {
    return false
    }
    }

    If someone knowledgeable (read: not me) about front end stuff/vue could sketch out a high level overview of how someone might get a POC out it might stimulate one of us to take a stab at it.

  8. regrettablemouse136 commented on Jun 6, 2021

    @regrettablemouse136

    Any update?

  9. Hironsan commented on Oct 21, 2021

    @Hironsan
    Member

    I solved this problem in #1511 .

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions