Skip to main content

A NER-based anonymization tool that replaces named entities in text with random entities from a given context.

Project description

🕵️‍♂️ ner_anon_pkg

A simple Python package for anonymizing text using Named Entity Recognition (NER).
Swap out real-world names, locations, and organizations with fun entities from Marvel, Star Wars, or Harry Potter!

Built on top of Hugging Face Transformers.


🚀 Features

  • 🔍 Named Entity Recognition using fine-tuned BERT models
  • 🧙 Replace real entities with fictional ones (Marvel, Star Wars, or Harry Potter)
  • 🌍 Multilingual and monolingual model support
  • 💡 Clean class-based design (EntityAnonymizer)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ner_anon-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ner_anon-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ner_anon-0.1.1.tar.gz.

File metadata

  • Download URL: ner_anon-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ner_anon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ee230bc4acfa39dd147510e465a634f679546d1754a60b28804ffa8ac2595fe9
MD5 aceaf6ef2facd39f0cc5451544e83fca
BLAKE2b-256 90da1f9ed1b6dbfb6a7fd81c4eef10d346ad8a017e1be7aaf11259600f16ce46

See more details on using hashes here.

File details

Details for the file ner_anon-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ner_anon-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for ner_anon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60f65b6cedb98dfd1d5bd01ab3a47514e5383efe2d60ab16eed559fa152113a4
MD5 d0d0cc20aba5d4aaa45ebd2c8cedf8c5
BLAKE2b-256 343693da0d5ad3d84f961886630d6ca7f16f5c12a53a927278d02da452c0649e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page