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 to get prompt encoder results? #179

Closed TianlinZhang668 closed 2 years ago

TianlinZhang668 commented 2 years ago

Could we get the encoder embedding of sentence after prompt learning? thank you very much!

Achazwl commented 2 years ago

For example in PromptForClassification, it consists of attribute prompt_model and verbalizer, you could manually call the forward of its prompt_model.