{ "cells": [ { "cell_type": "markdown", "id": "b71a1322", "metadata": {}, "source": [ "# Get started with `tanaos-text-anonymizer-v1`" ] }, { "cell_type": "markdown", "id": "e94691be", "metadata": {}, "source": [ "Use the [Artifex library](https://github.com/tanaos/artifex). Install it with\n", "\n", "```bash\n", "pip install artifex\n", "```" ] }, { "cell_type": "code", "execution_count": null, "id": "4eee3d1b", "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "from artifex import Artifex\n", "\n", "ta = Artifex().text_anonymization()\n", "\n", "anonymized_text = ta(\"John Doe lives at 123 Main St, New York. His phone number is (555) 123-4567.\")\n", "print(anonymized_text)" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }