Pre-selecting a multiple choice option with "accept" key

I'm trying to pre-select one of the multiple choice options using textcat.manual, and I think someone said adding the "accept" key should work. So I tried:

pgy textcat.manual testset en_core_web_sm data/test_write.jsonl --label labelsets/donut.txt --exclusive

The test file contains lines like this:

{"text": "Krispy Kreme is the best.", "accept": ["donut"]}

The "donut" option does not get selected. Can you help me understand why this is?

reference: Using choice interface with pre-set options

Wait, sorry, never mind! That actually worked :smiley:

1 Like