OpenPrompt icon indicating copy to clipboard operation
OpenPrompt copied to clipboard

Is it possible to use templates without {"mask"}?

Open RefluxNing opened this issue 3 years ago • 1 comments

I am using OpenPrompt on UnifiedQA (https://github.com/allenai/unifiedqa), which generates the answer using T5 without a mask token. I tried a template without {"mask"}, but this is not allowed in OpenPrompt. I use the template {"placeholder":"text_a"} \n {"placeholder":"text_b"} {"mask"}, following the instruction in UnifiedQA, but the generation results are most empty. Is there a way to use T5 generation (instead of mask filling) in OpenPrompt?

like this: image

RefluxNing avatar Jul 18 '22 08:07 RefluxNing

have you tried something like tutorial/2.1_conditional_generation.py?

Achazwl avatar Oct 11 '22 04:10 Achazwl