ucam-department-of-psychiatry / crate

Create and use de-identified research databases. Preprocess, extract text, anonymise/de-identify, link, apply natural language processing, query for research, manage consent for contact.
GNU General Public License v3.0
19 stars 7 forks source link

Date blurring in free text #84

Closed RudolfCardinal closed 2 years ago

RudolfCardinal commented 2 years ago

Request for generic date blurring in free text -- an extension of scrub_all_dates.

User interface could be:

Implementation would likely need:

RudolfCardinal commented 2 years ago

And because Python is brilliant, the third step is handled by the form of re.sub in which repl is a function (https://docs.python.org/3/library/re.html#re.sub).