OpenPrompt
v1.0.0
Getting Started
Installation
Introduction with an Example
How to Write a Template?
How to Write a Verbalizer?
FAQ
Package Reference
Base Classes
Templates
Verbalizer
Prompt Generator
Data Utils
Data Processors
Trainer
Utils Functions
Play with Configuration
OpenPrompt
»
Index
Index
A
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
V
|
W
A
add_prefix() (KnowledgeableVerbalizer static method)
(ManualVerbalizer static method)
(One2oneVerbalizer static method)
(SoftVerbalizer static method)
aggregate() (KnowledgeableVerbalizer method)
(ManualVerbalizer method)
(Verbalizer static method)
,
[1]
AgnewsProcessor (class in openprompt.data_utils.text_classification_dataset)
AutomaticVerbalizer (class in openprompt.prompts.automatic_verbalizer)
C
calibrate() (in module openprompt.utils.calibrate)
(ManualVerbalizer method)
(One2oneVerbalizer method)
ClassificationRunner (class in openprompt.trainer)
configure_loss_function() (ClassificationRunner method)
convert_template() (TemplateGenerator method)
D
DataProcessor (class in openprompt.data_utils.data_processor)
DBpediaProcessor (class in openprompt.data_utils.text_classification_dataset)
deparallelize() (PromptForClassification method)
(PromptForGeneration method)
device (PromptForClassification property)
(TemplateGenerator property)
E
extract_at_mask() (PromptForClassification method)
F
FewNERDProcessor (class in openprompt.data_utils.typing_dataset)
FewShotSampler (class in openprompt.data_utils.data_sampler)
forward() (PromptForClassification method)
(PromptForGeneration method)
(PromptModel method)
from_config() (Template class method)
,
[1]
,
[2]
(TemplateGenerator class method)
(Verbalizer class method)
,
[1]
(VerbalizerGenerator class method)
from_file() (AutomaticVerbalizer method)
(Template method)
,
[1]
,
[2]
(Verbalizer method)
,
[1]
G
gather_outputs() (SoftVerbalizer method)
(Verbalizer method)
,
[1]
generate() (PromptForGeneration method)
(TemplateGenerator method)
(VerbalizerGenerator method)
generate_parameters() (KnowledgeableVerbalizer method)
(ManualVerbalizer method)
(One2oneVerbalizer method)
(PrefixTuningTemplate method)
(PtuningTemplate method)
(SoftVerbalizer method)
(Verbalizer method)
,
[1]
GenerationRunner (class in openprompt.trainer)
GenerationVerbalizer (class in openprompt.prompts.generation_verbalizer)
get_default_loss_ids() (Template method)
,
[1]
,
[2]
get_default_shortenable_ids() (Template method)
,
[1]
,
[2]
get_default_soft_token_ids() (MixedTemplate method)
(Template method)
,
[1]
,
[2]
get_dev_examples() (DataProcessor method)
get_examples() (AgnewsProcessor method)
(DataProcessor method)
(DBpediaProcessor method)
(ImdbProcessor method)
(SST2Processor method)
(WebNLGProcessor method)
get_label_id() (DataProcessor method)
get_labels() (DataProcessor method)
get_num_labels() (DataProcessor method)
get_part_token_id() (T5TemplateGenerator method)
(TemplateGenerator method)
get_test_examples() (DataProcessor method)
get_train_examples() (DataProcessor method)
get_unlabeled_examples() (DataProcessor method)
group_parameters_1 (SoftVerbalizer property)
group_parameters_2 (SoftVerbalizer property)
H
handle_multi_token() (Verbalizer method)
,
[1]
I
ImdbProcessor (class in openprompt.data_utils.text_classification_dataset)
incorporate_text_example() (Template method)
,
[1]
invalid_label_word() (RobertaVerbalizerGenerator method)
(VerbalizerGenerator method)
K
KnowledgeableVerbalizer (class in openprompt.prompts.knowledgeable_verbalizer)
L
label_words (Verbalizer property)
,
[1]
LMBFFClassificationRunner (class in openprompt.lm_bff_trainer)
M
ManualTemplate (class in openprompt.prompts.manual_template)
ManualVerbalizer (class in openprompt.prompts.manual_verbalizer)
MixedTemplate (class in openprompt.prompts.mixed_template)
module
openprompt.prompt_base
openprompt.utils.calibrate
N
normalize() (ManualVerbalizer method)
(One2oneVerbalizer method)
(Verbalizer method)
,
[1]
O
on_fit_start() (ClassificationRunner method)
on_label_words_set() (GenerationVerbalizer method)
(KnowledgeableVerbalizer method)
(ManualVerbalizer method)
(One2oneVerbalizer method)
(PTRVerbalizer method)
(SoftVerbalizer method)
(Verbalizer method)
,
[1]
on_text_set() (ManualTemplate method)
(MixedTemplate method)
(PrefixTuningTemplate method)
(PtuningTemplate method)
(Template method)
,
[1]
,
[2]
One2oneVerbalizer (class in openprompt.prompts.one2one_verbalizer)
openprompt.prompt_base
module
openprompt.utils.calibrate
module
optimize_to_initialize() (AutomaticVerbalizer method)
P
parallelize() (PromptForClassification method)
(PromptForGeneration method)
parse_text() (Template method)
,
[1]
post_process() (RobertaVerbalizerGenerator method)
(VerbalizerGenerator method)
post_processing() (PromptForGeneration method)
post_processing_outputs() (Template method)
,
[1]
,
[2]
PrefixTuningTemplate (class in openprompt.prompts.prefix_tuning_template)
prepare() (MixedTemplate method)
prepare_inputs_for_generation() (PromptForGeneration method)
prepare_model_inputs() (PromptModel method)
process_batch() (MixedTemplate method)
(PrefixTuningTemplate method)
(PtuningTemplate method)
(Template method)
,
[1]
,
[2]
process_hiddens() (SoftVerbalizer method)
process_logits() (ManualVerbalizer method)
(One2oneVerbalizer method)
(PTRVerbalizer method)
process_outputs() (SoftVerbalizer method)
(Verbalizer method)
,
[1]
project() (AutomaticVerbalizer method)
(KnowledgeableVerbalizer method)
(ManualVerbalizer method)
(One2oneVerbalizer method)
(Verbalizer method)
,
[1]
PromptDataLoader (class in openprompt.pipeline_base)
PromptForClassification (class in openprompt.pipeline_base)
PromptForGeneration (class in openprompt.pipeline_base)
PromptModel (class in openprompt.pipeline_base)
PTRTemplate (class in openprompt.prompts.ptr_prompts)
PTRVerbalizer (class in openprompt.prompts.ptr_prompts)
PtuningTemplate (class in openprompt.prompts.ptuning_prompts)
R
register_buffer() (AutomaticVerbalizer method)
register_calibrate_logits() (KnowledgeableVerbalizer method)
(Verbalizer method)
,
[1]
registered_inputflag_names (Template attribute)
,
[1]
ReTACREDProcessor (class in openprompt.data_utils.relation_classification_dataset)
RobertaVerbalizerGenerator (class in openprompt.prompts)
run() (LMBFFClassificationRunner method)
S
safe_on_label_words_set() (Verbalizer method)
safe_on_text_set() (Template method)
,
[1]
,
[2]
sample_per_label() (FewShotSampler method)
sample_total() (FewShotSampler method)
save() (Template method)
,
[1]
,
[2]
SemEvalProcessor (class in openprompt.data_utils.relation_classification_dataset)
shift_logits_and_labels() (PromptForGeneration method)
SNLIProcessor (class in openprompt.data_utils.nli_dataset)
SoftVerbalizer (class in openprompt.prompts.soft_verbalizer)
SST2Processor (class in openprompt.data_utils.text_classification_dataset)
T
T5TemplateGenerator (class in openprompt.prompts)
TACREDProcessor (class in openprompt.data_utils.relation_classification_dataset)
TACREVProcessor (class in openprompt.data_utils.relation_classification_dataset)
Template (class in openprompt.prompt_base)
,
[1]
,
[2]
TemplateGenerator (class in openprompt.prompts)
text (Template property)
,
[1]
tokenize() (PromptDataLoader method)
tokenizer (PromptForClassification property)
train() (PromptModel method)
training (Template attribute)
,
[1]
(Verbalizer attribute)
V
Verbalizer (class in openprompt.prompt_base)
,
[1]
VerbalizerGenerator (class in openprompt.prompts)
vocab (Verbalizer property)
vocab_size (Verbalizer property)
W
WebNLGProcessor (class in openprompt.data_utils.conditional_generation_dataset)
wrap() (PromptDataLoader method)
wrap_one_example() (GenerationVerbalizer method)
(PrefixTuningTemplate method)
(Template method)
,
[1]
,
[2]