Skip to content

Relation labeling with sequence labeling #1703

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

Merged
merged 34 commits into from
Mar 2, 2022
Merged

Relation labeling with sequence labeling #1703

merged 34 commits into from
Mar 2, 2022

Conversation

Hironsan
Copy link
Member

@Hironsan Hironsan commented Feb 24, 2022

UI

image

Export format

{
    "id": 0,
    "text": "Google was founded on September 4, 1998, by Larry Page and Sergey Brin.",
    "entities": [
        {
            "id": 0,
            "start_offset": 0,
            "end_offset": 6,
            "label": "ORG"
        },
        {
            "id": 1,
            "start_offset": 22,
            "end_offset": 39,
            "label": "DATE"
        },
        {
            "id": 2,
            "start_offset": 44,
            "end_offset": 54,
            "label": "PERSON"
        },
        {
            "id": 3,
            "start_offset": 59,
            "end_offset": 70,
            "label": "PERSON"
        }
    ],
    "relations": [
        {
            "id": 0,
            "from_id": 0,
            "to_id": 1,
            "type": "foundedAt"
        },
        {
            "id": 1,
            "from_id": 0,
            "to_id": 2,
            "type": "foundedBy"
        },
        {
            "id": 2,
            "from_id": 0,
            "to_id": 3,
            "type": "foundedBy"
        }
    ]
}

fix #1593
fix #1534
fix #1559
fix #233
fix #1418

@Hironsan Hironsan changed the title [WIP] Relation labeling Relation labeling with sequence labeling Feb 25, 2022
@Hironsan Hironsan merged commit 1a14974 into master Mar 2, 2022
@Hironsan Hironsan deleted the feature/relation branch March 2, 2022 02:57
@jayaddison
Copy link

Thank you, @Hironsan !

@Hironsan
Copy link
Member Author

Hironsan commented Mar 2, 2022

Your welcome. If there are any problems or improvement ideas, please let me know.

@elexira
Copy link

elexira commented Mar 10, 2022

@Hironsan
Hello we have pulled the latest images from dockerhub. We have some data annotated that already contains relationships. We tried many different ways to import this data to doccano to visually show them to others, but we do not know how to import annotated data with relationships to doccano. The exported data format is not supported when importing data.

@Hironsan
Copy link
Member Author

Hello @elexira

Currently, importing the relation data has not been supported yet.
If you have the format you want to support, please comment it or make an issue.

@elexira
Copy link

elexira commented Mar 11, 2022

@Hironsan Thank you, it makes sense for the import format to follow the same one that Doccano uses for exporting relationship data. An example of such format template was provided by you at the top of this very page.

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