Julia Makogon
02/12/2024, 3:32 PMNok Lam Chan
02/12/2024, 3:41 PMdata/01_raw/golden to data/01_raw/en/golden.From what you said, I think you can use the template value like this:
data/01_raw/${globals: language}/golden
, and define langauge
in globals.yml
Julia Makogon
02/12/2024, 5:13 PMNok Lam Chan
02/12/2024, 5:33 PMJulia Makogon
02/12/2024, 5:42 PMNok Lam Chan
02/12/2024, 5:54 PMkedro pipeline create <name>
to create the scaffold quickly.
You can have shared parameters in base/parameters.yml
and optionally override the necessary bit in base/<pipeline>/parameters.yml
when needed.Julia Makogon
02/12/2024, 6:55 PMdata/01_raw/${runtime_params:language}/golden
and then modify cli commands in parametrized spacy project.yml providing
kedro run --tags train_golden_model --params language:${vars.language}
But how to link templates and namespaces? Is it possible to pass the parameter as a namespace name? We train models one language at a time. Is the code below ok?
ds_pipeline_1 = pipeline(
pipe=pipeline_instance,
inputs="model_input_table",
namespace="params:language",
)
Julia Makogon
02/12/2024, 7:33 PMparameters_pipe2.yml: some_node_params:en:{dict of thresholds by label}
and add language as a parameter of the node. That's the point to start from.