Skip to main content

NER-API

Ce package permet le traitemnt du texte , l'extraction des entités(inclus code swift et code imo), ainsi que le highlighting des ces entités présente dans un fichier pdf

Installation

pip install nerforpdf

Usage/Exemples

import nerforpdf as nfp
nerforpdf.text_preprocessing.text_preprocessing(text,accented=True,stopw=True,punctuation=True,lowercase=True,lemmatize=True,spelling=True,expand_contraction=True,urls=True)

cette fonction permet de traiter le text en utilisant les foltres présents comme argument

import nerforpdf as nfp
nerforpdf.text_preprocessing.spacy_preprocessing(text,lowercase=True,stopw=True,punctuation=True,alphabetic=True,lemmatize=True,)

Permet de faire du traitement du texte à l'aide de spacy

import nerforpdf as nfp
nerforpdf.highlight_pdf.output(input_file)

cette fonction prend en argument le chemin vers un fichier pdf , extrait les entités(code swift et imo inclus),les highlight , et enregistre le pdf highlighté dans le dossier courant sous le nom "output.pdf"

API Reference

get_entities(text)

Prend un texte(String) et retourne ses entités

highlight_pdf(pdf)

Prend le pdf encodé en base64 et retourne le pdf highlighté encodé en base64 ainsi que les entités détectées

Release files for nerforpdf 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nerforpdf 0.0.4
File Size Uploaded
nerforpdf-0.0.4.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nerforpdf 0.0.4
File Interpreter ABI Platform
nerforpdf-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / nerforpdf-0.0.4.tar.gz

Download URL nerforpdf-0.0.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1109de1acc09164b914960c6add520011f9a68828ff5da11a75768bb2e4d09e8
BLAKE2b-256 checksum
How to use checksums
93df2ba71c08bee81fbdec74f29e299c557a92c205b755ff73d4a5f8cf5b1e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / nerforpdf-0.0.4-py3-none-any.whl

Download URL nerforpdf-0.0.4-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53c86af4b033d6ee211a2723c46c6772e3047b670f2d74485b91b5e53cd60651
BLAKE2b-256 checksum
How to use checksums
75c4500f09e6ae700c203a932878f1ff675b1fbd835e48804b521970d577532d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page