Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions medcat-v2/medcat/components/ner/trf/deid.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from typing import Union, Any, Optional, Iterable
import re
import logging
import warnings

from medcat.cat import CAT
from medcat.cdb.cdb import CDB
Expand Down Expand Up @@ -94,6 +95,16 @@ def deid_text(self, text: str, redact: bool = False) -> str:

def deid_multi_text(self, texts: Iterable[str], redact: bool = False,
n_process: Optional[int] = None) -> list[str]:
warnings.warn(
"deid_multi_text() is deprecated and will be removed in a "
"future release. Use deid_multi_texts() instead.",
DeprecationWarning,
stacklevel=2
)
return self.deid_multi_texts(texts, redact, n_process)

def deid_multi_texts(self, texts: Iterable[str], redact: bool = False,
n_process: Optional[int] = None) -> list[str]:
if n_process is None:
n_process = 1

Expand Down
Loading