Configuration options
Every option of the YAML config that is not a Lightning/trainer setting.
Generated from the source by tools/make_api.py; do not edit by hand.
tasks: entries (Task)
| Field | Type | Default |
|---|---|---|
name | str | required |
level | Literal['token', 'char'] | 'token' |
decoder | Literal['linear', 'attentional', 'advanced_attentional', 'crf', 'masked', 'levenshtein', 't5'] | 'linear' |
context | Literal['none', 'word', 'sentence', 'both'] | 'sentence' |
layer | int | -1 |
target | bool | True |
lower | bool | False |
utfnorm | bool | False |
utfnorm_type | str | 'NFKD' |
drop_diacritics | bool | False |
eos | bool | False |
bos | bool | False |
mask | bool | False |
encoding | Literal['char', 'byte'] | 'char' |
max_lemma_len | int | 20 |
mask_decoder_num_layers | int | 2 |
mask_decoder_num_heads | int | 4 |
mask_ratio | float | 0.3 |
full_mask_probability | float | 0.5 |
full_mask_start | float | 0.0 |
n_refinement_steps | int | 3 |
label_smoothing | float | 0.1 |
pad_loss_weight | float | 0.1 |
use_length_head | bool | True |
length_max_off | int | 10 |
length_weight | float | 1.0 |
length_weight_end | float | 0.3 |
curriculum | bool | True |
curriculum_max_epochs | Optional[int] | None |
copy_init | bool | False |
copy_init_prob | float | 0.5 |
length_beam | int | 1 |
max_insert_len | int | 3 |
action_weight | float | 1.0 |
replace_weight | float | 0.7 |
insert_weight | float | 0.5 |
t5_d_model | int | 128 |
t5_d_kv | int | 32 |
t5_d_ff | int | 512 |
t5_num_layers | int | 3 |
t5_num_heads | int | 4 |
t5_dropout | float | 0.1 |
t5_max_len | int | 40 |
t5_checkpoint | Optional[str] | None |
use_copy | bool | True |
source_init | bool | True |
scheduled_sampling | float | 0.0 |
scheduled_sampling_start | float | 0.0 |
scheduled_sampling_end | Optional[float] | None |
scheduled_sampling_max_epochs | Optional[int] | None |
hidden_size | int | 0 |
head_dropout | float | 0.0 |
inputs_from | tuple | () |
with_embedding | bool | False |
frozen | bool | False |
data: (PieDataModule)
| Option | Type | Default |
|---|---|---|
path_train | required | |
path_val | required | |
path_test | required | |
multilabelencoder | dict | required |
dataset_params | dict | required |
reader_params | dict | required |
dataloader_hparams | dict | required |
sampling | Optional[dict] | None |
noise | Optional[dict] | None |
noise and sampling are described in Noise and rare-lemma sampling.
model: (PaPie)
| Option | Default |
|---|---|
include_lm | required |
model_config | required |
task_scheduler_config | required |
optimizer_config | required |
lr_scheduler_config | required |
sample_log_n | 20 |
candidates | None |
init_from | None |
init_from_mode | 'exact' |
init_from_exclude | None |
freeze_encoder | False |
Fine-tuning options (init_from*): Fine-tuning and transfer; candidates: Candidate features.
model.model_config (PIEModel constructor)
| Option | Default |
|---|---|
wemb_dim | required |
cemb_dim | required |
cemb_layers | required |
sent_layers | required |
sent_hidden_size | required |
rnn_cell | 'GRU' |
dropout | 0.0 |
use_byt5 | False |
byt5_model_name | 'google/byt5-small' |
byt5_num_layers | 1 |
byt5_output_dim | None |
byt5_normalization | None |
use_sentence_encoder | True |
source_encoder | None |
soter_config | None |
candidates | None |