Skip to content

Commit 90598ed

Browse files
authored
CU-869ag3k8a: Avoid using protected method for pipe getting (#184)
1 parent 16c182e commit 90598ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

medcat-v2-tutorials/notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"# create MetaCAT\n",
157157
"# TODO: remove need for call to protected attribute\n",
158158
"mc = MetaCATAddon.create_new(\n",
159-
" config, cat._pipeline.tokenizer,\n",
159+
" config, cat.pipe.tokenizer,\n",
160160
" tknzer_preprocessor=lambda tknzer: tknzer.hf_tokenizers.train(data_path))\n",
161161
"\n",
162162
"# add MetaCAT\n",
@@ -166,7 +166,7 @@
166166
"else:\n",
167167
" cat.add_addon(mc)\n",
168168
"print(\"Addon configs:\", cat.config.components.addons)\n",
169-
"print(\"Addons\", cat._pipeline._addons)"
169+
"print(\"Addons\", cat.get_addons())"
170170
]
171171
},
172172
{

0 commit comments

Comments
 (0)