Skip to content

Commit

Permalink
TextMatcherInternalModel annotator and clinical_deidentification_gene…
Browse files Browse the repository at this point in the history
…ric_optimized pretrained healthcare pipeline added to nlu
  • Loading branch information
SKocer committed Apr 22, 2024
1 parent 909a4cc commit 79a8b15
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions nlu/spellbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -10631,6 +10631,7 @@ class Spellbook:
'en.deid.clinical_wip': 'clinical_deidentification_wip',
'en.deid.glove_augmented.pipeline': 'clinical_deidentification_glove_augmented',
'en.deid.glove_pipeline': 'clinical_deidentification_glove',
'en.deid.generic_optimized.pipeline': 'clinical_deidentification_generic_optimized',
'en.deid.med_ner_large.pipeline': 'ner_deid_sd_large_pipeline',
'en.deid.ner_augmented.pipeline': 'ner_deid_augmented_pipeline',
'en.deid.ner_biobert.pipeline': 'ner_deid_biobert_pipeline',
Expand Down
1 change: 1 addition & 0 deletions nlu/universe/annotator_class_universe.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class AnnoClassRef:
A_N.PARTIAL_EntityRulerApproach: 'EntityRulerApproach',
A_N.PARTIAL_EntityRulerModel: 'EntityRulerModel',
A_N.PARTIAL_TextMatcherModel: 'TextMatcherModel',
A_N.PARTIAL_TextMatcherInternalModel: 'TextMatcherInternalModel',
A_N.PARTIAL_BigTextMatcher: 'BigTextMatcher',
A_N.PARTIAL_BigTextMatcherModel: 'BigTextMatcherModel',
A_N.PARTIAL_DateMatcher: 'DateMatcher',
Expand Down
17 changes: 17 additions & 0 deletions nlu/universe/component_universes.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,23 @@ class ComponentUniverse:
output_context=ComputeContexts.spark,
),

A.PARTIAL_TextMatcherInternalModel: partial(NluComponent,
name=A.PARTIAL_ChunkMergeApproach,
jsl_anno_class_id=A.PARTIAL_TextMatcherInternalModel,
jsl_anno_py_class=ACR.JSL_anno2_py_class[A.PARTIAL_TextMatcherInternalModel],
node=NLP_FEATURE_NODES.nodes[A.PARTIALLY_IMPLEMENTED],
type=T.PARTIALLY_READY,
pdf_extractor_methods={'default': default_partial_implement_config,
'default_full': default_full_config, },
pdf_col_name_substitutor=partially_implemented_substitutor,
output_level=L.DOCUMENT,
description='Not fully integrated',
provider=ComponentBackends.open_source,
license=Licenses.open_source,
computation_context=ComputeContexts.spark,
output_context=ComputeContexts.spark,
),

A.PARTIAL_BigTextMatcher: partial(NluComponent,
name=A.PARTIAL_ChunkMergeApproach,
jsl_anno_class_id=A.PARTIAL_BigTextMatcher,
Expand Down
2 changes: 2 additions & 0 deletions nlu/universe/feature_node_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ class NLP_NODE_IDS:
PARTIAL_EntityRulerApproach = JslAnnoId('PARTIAL_EntityRulerApproach')
PARTIAL_EntityRulerModel = JslAnnoId('PARTIAL_EntityRulerModel')
PARTIAL_TextMatcherModel = JslAnnoId('PARTIAL_TextMatcherModel')
PARTIAL_TextMatcherModel = JslAnnoId('PARTIAL_TextMatcherModel')
PARTIAL_BigTextMatcher = JslAnnoId('PARTIAL_BigTextMatcher')
PARTIAL_BigTextMatcherModel = JslAnnoId('PARTIAL_BigTextMatcherModel')
PARTIAL_TextMatcherInternalModel = JslAnnoId('PARTIAL_TextMatcherInternalModel')
PARTIAL_DateMatcher = JslAnnoId('PARTIAL_DateMatcher')
PARTIAL_MultiDateMatcher = JslAnnoId('PARTIAL_MultiDateMatcher')
PARTIAL_RegexMatcher = JslAnnoId('PARTIAL_RegexMatcher')
Expand Down

0 comments on commit 79a8b15

Please sign in to comment.