Skip to content

Commit

Permalink
Merge pull request #6 from jftuga/bugfix-save-tokens
Browse files Browse the repository at this point in the history
update get_identified_elements()
  • Loading branch information
jftuga authored Jan 3, 2025
2 parents a778a71 + 020b3de commit afb0cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deidentification/deidentification.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def deidentify_with_wrapped_html(self, text: str, html_begin: str = HTML_BEGIN,
return buffer.getvalue()

def get_identified_elements(self) -> dict:
elements = {"message": self.replaced_text, "entities": self.aggregate_persons, "pronouns": self.aggregate_pronouns}
elements = {"message": self.text, "entities": self.aggregate_persons, "pronouns": self.aggregate_pronouns}
return elements

def _find_all_persons(self) -> int:
Expand Down

0 comments on commit afb0cd1

Please # to comment.