atsc_prompts
atsc_prompts copied to clipboard
I got the error info about unique in `_generate_examples`
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 ?