atsc_prompts icon indicating copy to clipboard operation
atsc_prompts copied to clipboard

I got the error info about unique in `_generate_examples`

Open SupritYoung opened this issue 2 years ago • 0 comments

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 ?

SupritYoung avatar May 21 '22 13:05 SupritYoung