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

Does Doccano support relation marking between entities? #1729

Closed
karndeepsingh opened this issue Mar 10, 2022 · 20 comments
Closed

Does Doccano support relation marking between entities? #1729

karndeepsingh opened this issue Mar 10, 2022 · 20 comments
Labels
question Further information is requested

Comments

@karndeepsingh
Copy link

Hi,
I am working on Joint Relation and Entity problem. I want to extract relationship between the entities. So, in order to do so, I need to annotate the data with NER and Relationship between them. Is relationship annotation possible?

Please help.
Thanks

@github-actions
Copy link

Would you write your environment? Thank you!

@karndeepsingh
Copy link
Author

Would you write your environment? Thank you!

Environment:
OS - Windows 10
Python 3.8
CPU - intel corei7
RAM -16GB
GPU - GTX 1660 Ti

@SraavanChevireddy
Copy link

It same for me too. I tried to Create relations in the Relations tab. I cannot see them created anywhere there. I have chosen the Sequence Labelling project. It used to work earlier. I'm Using Mac OS Monterey on Safari

@karndeepsingh
Copy link
Author

It same for me too. I tried to Create relations in the Relations tab. I cannot see them created anywhere there. I have chosen the Sequence Labelling project. It used to work earlier. I'm Using Mac OS Monterey on Safari

Oh is it?
If you had that data with relationship then what could be your process for training such relationship model?
I mean how you gonna train model with relationship data?

@SraavanChevireddy
Copy link

SraavanChevireddy commented Mar 10, 2022

Yes. I want to train it using the Spacy Transformer and deploy it to spacy-nightly for training the Joint Entity training. Can anyone help me on this please, I'm not sure What I'm doing wrong here.

Screen.Recording.2022-03-11.at.1.53.22.AM.mov

@karndeepsingh
Copy link
Author

Yes. I want to train it using the Spacy Transformer and deploy it to spacy-nightly for training the Joint Entity training. Can anyone help me on this please, I'm not sure What I'm doing wrong here.

Screen.Recording.2022-03-11.at.1.53.22.AM.mov

Do you have conversion code to convert the relationship annotated data to spacy format for training joint relationship model?

whats your length of data? Is it more than 512 token?

@Hironsan
Copy link
Member

It's possible #1703:

@Hironsan Hironsan added the question Further information is requested label Mar 11, 2022
@karndeepsingh
Copy link
Author

It's possible #1703:

@Hironsan Thanks for the reply. But As mentioned by @SraavanChevireddy in his video, while creating labels for relations under relation tab, it is not saving and showing it on the interface. For more clarity, please watch video.

Thanks

@Hironsan
Copy link
Member

I watched the video and found it is not the latest code. OK, I will release the latest one.
Thanks

@karndeepsingh
Copy link
Author

I watched the video and found it is not the latest code. OK, I will release the latest one.
Thanks

Thanks @Hironsan . Let us know the new version that is being rolled out after an update.

@dugudongfangshuo
Copy link

hello docker image update? I used the latest docker image and still this problem

@19522531
Copy link

It's possible #1703:

@Hironsan Thanks for the reply. But As mentioned by @SraavanChevireddy in his video, while creating labels for relations under relation tab, it is not saving and showing it on the interface. For more clarity, please watch video.

Thanks

Can you record video to help me pratice with tool

@Aj-232425
Copy link

@karndeepsingh hello, i have one query to ask , after relation annotation, data is exported in jsonl format.. how can I use it for relation extraction using BioBERT or other models, except spacy.

@ylaxor
Copy link

ylaxor commented Jun 29, 2022

Hello, has this feature been incorporated in the current release ?
I've just installed doccano (using both the docker & docker-compose ways) and I don't get the same UI when I open a Sequence Labeling project with Relation labels enabled.

@CraneCooker
Copy link

Hello, has this feature been incorporated in the current release ? I've just installed doccano (using both the docker & docker-compose ways) and I don't get the same UI when I open a Sequence Labeling project with Relation labels enabled.

me too. can't find where to mark relation. even I tap the span list to relation. could someone help how to label relation?

@CycloneBoy
Copy link

Hello, has this feature been incorporated in the current release ? I've just installed doccano (using both the docker & docker-compose ways) and I don't get the same UI when I open a Sequence Labeling project with Relation labels enabled.

me too. can't find where to mark relation. even I tap the span list to relation. could someone help how to label relation?

Label the relations:

1.Select the Label Types on the right as SPAN, and then label the two entities
2.Switch the Label Types on the right to Relation
3.Label the relationship, start to click the category of the first entity, and then click the category of the second entity, then a relationship selection list will pop up, select the relationship that needs to be labeled

image

@19522531
Copy link

19522531 commented Jul 6, 2022

Hello, has this feature been incorporated in the current release ? I've just installed doccano (using both the docker & docker-compose ways) and I don't get the same UI when I open a Sequence Labeling project with Relation labels enabled.

me too. can't find where to mark relation. even I tap the span list to relation. could someone help how to label relation?

Label the relations:

1.Select the Label Types on the right as SPAN, and then label the two entities 2.Switch the Label Types on the right to Relation 3.Label the relationship, start to click the category of the first entity, and then click the category of the second entity, then a relationship selection list will pop up, select the relationship that needs to be labeled

image
thank you very much. It's very helpful to me

@richardzhangy26
Copy link

Hello, has this feature been incorporated in the current release ? I've just installed doccano (using both the docker & docker-compose ways) and I don't get the same UI when I open a Sequence Labeling project with Relation labels enabled.

me too. can't find where to mark relation. even I tap the span list to relation. could someone help how to label relation?

Label the relations:

1.Select the Label Types on the right as SPAN, and then label the two entities 2.Switch the Label Types on the right to Relation 3.Label the relationship, start to click the category of the first entity, and then click the category of the second entity, then a relationship selection list will pop up, select the relationship that needs to be labeled

image

Thanks you so much, the document has not show how to lable the relationship.

@HussnainAhmedSaqib
Copy link

while creating the project, I didn't opt for the relation extraction option, is there a way to add relation extraction in the project afterwards?

@regtm
Copy link

regtm commented Mar 7, 2023

I just pulled doccano:latest from dockerhub and while the NER demo does show a Relation, the UI visible in the screenshots posted above is missing.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests