Skip to content

I got the error info about unique in _generate_examples #7

@SupritYoung

Description

@SupritYoung

the error info is:

FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
Keys should be unique and deterministic in nature

I see this code:

            if len(aspect_term_sentiment) > 0:
                for ats in aspect_term_sentiment:
                    yield id_, {
                        "text": sentence_text,
                        "aspect": ats["aspect"],
                        "sentiment": ats["sentiment"]
                    }

In my view, for every aspect in a text, the id_ will must be duplicate, isn't it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions