Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/thunlp/OpenPrompt
/ 1.4_soft_template.py
File
1.4_soft_template.py
tutorial/1.4_soft_template.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
tqdm
import
tqdm
2
from
openprompt.data_utils
import
PROCESSORS
3
import
torch
4
from
openprompt.data_utils.utils
import
InputExample
Callers
nothing calls this directly
Calls
15
set_seed
Function · 0.90
load_plm
Function · 0.90
FewShotSampler
Class · 0.90
SoftTemplate
Class · 0.90
ManualVerbalizer
Class · 0.90
PromptForClassification
Class · 0.90
PromptDataLoader
Class · 0.90
get_labels
Method · 0.80
cuda
Method · 0.80
train
Method · 0.80
save
Method · 0.80
evaluate
Function · 0.70
Tested by
no test coverage detected