Skip to content

Commit

Permalink
Update DeIdentification.md (#13449)
Browse files Browse the repository at this point in the history
* Update DeIdentification.md

* Update DeIdentification.md

* Updated AssertionDL md file
  • Loading branch information
Meryem1425 authored Feb 1, 2023
1 parent e882ee3 commit 1fe557b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions docs/en/licensed_annotator_entries/AssertionDL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions docs/en/licensed_annotator_entries/DeIdentification.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() \
Expand Down

0 comments on commit 1fe557b

Please sign in to comment.