Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/thunlp/OpenPrompt
/ 1.2_soft_verbalizers.py
File
1.2_soft_verbalizers.py
tutorial/1.2_soft_verbalizers.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
2
from
openprompt.data_utils.text_classification_dataset
import
AgnewsProcessor
3
4
Callers
nothing calls this directly
Calls
11
AgnewsProcessor
Class · 0.90
FewShotSampler
Class · 0.90
load_plm
Function · 0.90
ManualTemplate
Class · 0.90
PromptDataLoader
Class · 0.90
SoftVerbalizer
Class · 0.90
PromptForClassification
Class · 0.90
cuda
Method · 0.80
get_train_examples
Method · 0.45
get_test_examples
Method · 0.45
wrap_one_example
Method · 0.45
Tested by
no test coverage detected