File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ def deidentify(self, text: str) -> str:
125125 if self .config .debug :
126126 self .__debug_log (f"deidentify(): first iter, persons={ len (self .all_persons )} " )
127127 self ._find_all_pronouns ()
128+ self .aggregate_pronouns .extend (self .all_pronouns )
128129
129130 if self .config .debug :
130131 self .__print_entities_table (self .all_persons )
@@ -142,7 +143,6 @@ def deidentify(self, text: str) -> str:
142143 self .__debug_log (f"deidentify(): next iter, persons={ len (self .all_persons )} " )
143144 if persons_count == 0 :
144145 break
145- self .aggregate_pronouns .extend (self .all_pronouns )
146146 self .all_pronouns = []
147147 merged = self ._merge_metadata ()
148148 replaced_text = self ._replace_merged (replaced_text , merged )
You can’t perform that action at this time.
0 commit comments