Skip to content

Commit 3adce7c

Browse files
authored
CU-869a7mjaa: Add simplified method of getting pipe from CAT object (#112)
1 parent 4549d9d commit 3adce7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

medcat-v2/medcat/cat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ def _recreate_pipe(self, model_load_path: Optional[str] = None,
8686
addon_config_dict=addon_config_dict)
8787
return self._pipeline
8888

89+
@property
90+
def pipe(self) -> Pipeline:
91+
return self._pipeline
92+
8993
@classmethod
9094
def get_init_attrs(cls) -> list[str]:
9195
return ['cdb', 'vocab']

0 commit comments

Comments
 (0)