update sample code
Browse files
README.md
CHANGED
|
@@ -51,7 +51,7 @@ from openprompt import PromptForClassification
|
|
| 51 |
from openprompt.data_utils import InputExample
|
| 52 |
from openprompt import PromptDataLoader
|
| 53 |
|
| 54 |
-
checkpoint_file = '
|
| 55 |
|
| 56 |
plm, tokenizer, model_config, WrapperClass = load_plm('roberta', 'roberta-large')
|
| 57 |
template_text = 'The sentence {"placeholder":"text_a"} has the label {"mask"}.'
|
|
|
|
| 51 |
from openprompt.data_utils import InputExample
|
| 52 |
from openprompt import PromptDataLoader
|
| 53 |
|
| 54 |
+
checkpoint_file = 'your_path_to/empathy-appraisal-span.pt'
|
| 55 |
|
| 56 |
plm, tokenizer, model_config, WrapperClass = load_plm('roberta', 'roberta-large')
|
| 57 |
template_text = 'The sentence {"placeholder":"text_a"} has the label {"mask"}.'
|