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.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-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ner_anon-0.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.tar.gz
Algorithm Hash digest
SHA256 6440891e777d3dd7eb64f973008899e19cfe2f13f28ec862f150219f1bdad6b4
MD5 d42a74f1fb6462c634986dab7b21bede
BLAKE2b-256 5358076e39aa66fd29434dc77ca114637ee22859adbdf473a575674196121936

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ner_anon-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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-py3-none-any.whl
Algorithm Hash digest
SHA256 1ec2236728e4d85af6c84decd13d16f8fc90d988e37569ed4ce2ebc7186da2db
MD5 0cce34e205f7913e6000cdbab38be4a8
BLAKE2b-256 dcb3e039285da2bf213299c19a7e1320f6fda6115bcde45f855e6ae84684dde5

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