From 1fe557be7be54ef13ce9561ba5da0092327deabc Mon Sep 17 00:00:00 2001 From: Vildan <64216738+Meryem1425@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:40:14 -0500 Subject: [PATCH] Update DeIdentification.md (#13449) * Update DeIdentification.md * Update DeIdentification.md * Updated AssertionDL md file --- docs/en/licensed_annotator_entries/AssertionDL.md | 7 +------ docs/en/licensed_annotator_entries/DeIdentification.md | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/en/licensed_annotator_entries/AssertionDL.md b/docs/en/licensed_annotator_entries/AssertionDL.md index 6a1478e153c1f6..3355e406d20759 100644 --- a/docs/en/licensed_annotator_entries/AssertionDL.md +++ b/docs/en/licensed_annotator_entries/AssertionDL.md @@ -430,12 +430,7 @@ document = nlp.DocumentAssembler()\ .setOutputCol("document") chunk = nlp.Doc2Chunk()\ .setInputCols("document")\ - .setOutputCol("doc_chunk")\ - .setChunkCol("chunk")\ - .setStartCol("tkn_start")\ - .setStartColByTokenIndex(True)\ - .setFailOnMissing(False)\ - .setLowerCase(False) + .setOutputCol("doc_chunk") token = nlp.Tokenizer()\ .setInputCols(['document'])\ .setOutputCol('token') diff --git a/docs/en/licensed_annotator_entries/DeIdentification.md b/docs/en/licensed_annotator_entries/DeIdentification.md index 4908992bc3b69e..49889fb87de79a 100644 --- a/docs/en/licensed_annotator_entries/DeIdentification.md +++ b/docs/en/licensed_annotator_entries/DeIdentification.md @@ -377,9 +377,9 @@ clinical_sensitive_entities = medical.NerModel \ .pretrained("ner_deid_enriched", "en", "clinical/models") \ .setInputCols(["sentence", "token", "embeddings"]).setOutputCol("ner") -nerConverter = nlp.NerConverter() \ +nerConverter = medical.NerConverterInternal() \ .setInputCols(["sentence", "token", "ner"]) \ - .setOutputCol("ner_con") + .setOutputCol("ner_chunk") # Deidentification deIdentification = medical.DeIdentification() \