thunlp / OpenPrompt

An Open-Source Framework for Prompt-Learning.
https://thunlp.github.io/OpenPrompt/
Apache License 2.0
4.38k stars 455 forks source link

How does `SoftTemplate` work? #245

Closed indunil-19 closed 1 year ago

indunil-19 commented 1 year ago

This tutorial uses https://github.com/thunlp/OpenPrompt/blob/main/tutorial/1.4_soft_template.py, but there is no documentation here it, How can I know to use it properly?

Also what is the difference between MixedTemplate and SoftTemplate?

yulinchen99 commented 1 year ago

SoftTemplate is a primitive implementation of template dealing with soft tokens, all its features are well covered by MixedTemplate. We recommend using MixedTemplate directly.

indunil-19 commented 1 year ago

@cyl628 Thank you very much for your answer.