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

Support multiple label in sequence labeling #19

Closed
pompobit opened this issue Oct 17, 2018 · 7 comments
Closed

Support multiple label in sequence labeling #19

pompobit opened this issue Oct 17, 2018 · 7 comments
Labels
feature request feature request for doccano

Comments

@pompobit
Copy link

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?

@jamesmf
Copy link

jamesmf commented Oct 17, 2018

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

@icoxfog417 icoxfog417 added the enhancement Improvement on existing feature label Oct 20, 2018
@icoxfog417 icoxfog417 changed the title Annotate sentence using different labels for the same words Support multiple label in sequence labeling Oct 20, 2018
@icoxfog417
Copy link
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.

@Hironsan Hironsan added feature request feature request for doccano and removed sequence-labeling enhancement Improvement on existing feature labels Feb 12, 2019
omriallouche referenced this issue in gong-io/doccano Jul 2, 2019
Feature/Reworked delete action for Document model
@manashmandal
Copy link

I'd love the feature as well.

@br-dr3
Copy link

br-dr3 commented Jul 23, 2020

Any update on this?

@gajomi
Copy link

gajomi commented Aug 19, 2020

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.

@regrettablemouse136
Copy link

Any update?

@Hironsan
Copy link
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
Labels
feature request feature request for doccano
Projects
None yet
Development

No branches or pull requests

8 participants