Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformations lookup #19

Merged
merged 14 commits into from
Feb 2, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
flake8 unhappy with comment
  • Loading branch information
LydiaMennesHealth committed Jan 18, 2024
commit 23103c35ea285cc7e5b81ddee4734a58b97f9f4c
4 changes: 3 additions & 1 deletion docdeid/process/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ def __init__(
self.pre_match_words: Optional[set[str]] = None
self.matching_pipeline: Optional[list[StringModifier]] = None

# in case of a provided matching pipeline this goes wrong because it simply gets overwritten no warning nada
# in case of a provided matching pipeline this goes wrong
# because it simply gets overwritten no warning nada
# (will fix this in next PR)
if pre_match_words is not None:
self.pre_match_words = set(pre_match_words)
self.matching_pipeline = [docdeid.str.LowercaseString()]
Expand Down