Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/thunlp/OpenPrompt
/ 3.1_LMBFF.py
File
3.1_LMBFF.py
tutorial/3.1_LMBFF.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# %% [markdown]
2
# ## Text Classification with LM-BFF.
3
# In this tutorial, we do sentiment analysis with automatic template and verbalizer generation. We use SST-2 as an example.
4
Callers
nothing calls this directly
Calls
15
SST2Processor
Class · 0.90
load_plm
Function · 0.90
ManualVerbalizer
Class · 0.90
LMBFFTemplateGenerationTemplate
Class · 0.90
T5TemplateGenerator
Class · 0.90
PromptDataLoader
Class · 0.90
ManualTemplate
Class · 0.90
PromptForClassification
Class · 0.90
RobertaVerbalizerGenerator
Class · 0.90
fit
Function · 0.85
cuda
Method · 0.80
_register_buffer
Method · 0.80
Tested by
no test coverage detected