{ "cells": [ { "cell_type": "markdown", "id": "b71a1322", "metadata": {}, "source": [ "# Get started with `tanaos-NER-v1`" ] }, { "cell_type": "markdown", "id": "92829c4f", "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": "a9e77e70", "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "from artifex import Artifex\n", "\n", "text_summarization = Artifex().text_summarization()\n", "\n", "text = \"\"\"\n", "The Amazon rainforest, often referred to as the \"lungs of the Earth\", produces about\n", "20% of the world's oxygen and is home to an estimated 10% of all species on the planet.\n", "Deforestation driven by agriculture, logging, and infrastructure development has\n", "destroyed roughly 17% of the forest over the last 50 years, raising urgent concerns\n", "among scientists and policymakers about biodiversity loss and climate change.\n", "\"\"\"\n", "\n", "summary = text_summarization(text)\n", "print(summary)" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }