Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyFastNER

PyFastNER is the python implementation of FastNER, which is orginally developed using Java. It uses hash function to process multiple rules at the same time. Similar to FastNER, PyFastNER supports token-based rules (FastNER--under developing) and character-based rules (FastCNER). It is licensed under the Apache License, Version 2.0.

Install:

pip install PyFastNER

Examples:

Here is a simiple example of using external dictionary to find matches in an input string. It will return a dictionary of spans grouped by the named entity types.

from PyFastNER import FastCNER
# initiate fastner using external rule file
fastner = FastCNER('conf/crule_test.tsv')
# process an input string
res = fastner.processString('Pt came with fever, T 102.0F.')
# display processed results
for type in res.keys():
	for span in res[type]:
		print(span)

Here is another example if you need process a sentence within a document, where you just need to tell the offset of the sentence to the beginning of the document.

from PyFastNER import FastCNER
fastner = FastCNER('conf/crule_test.tsv')
res = fastner.processString('Pt came with fever, T 102.0F.',134)

For more examples, please refer to TestFastCNER.py

Metadata

Release files for PyFastNER 1.0.10a0

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

Source distribution (sdist)

Source distribution for PyFastNER 1.0.10a0
File Size Uploaded Provenance Actions
PyFastNER-1.0.10a0.tar.gz 13.6 kB Without provenance Details for PyFastNER-1.0.10a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyFastNER 1.0.10a0
File Interpreter ABI Platform Actions
PyFastNER-1.0.10a0-py3-none-any.whl Python 3 none any Details for PyFastNER-1.0.10a0-py3-none-any.whl

Total release size: 36.1 kB

Release files / PyFastNER-1.0.10a0.tar.gz

Download URL PyFastNER-1.0.10a0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9b8e4e43150e63da89d7073b1ba365b8f830d04f328c141970aed9f079ba47aa
BLAKE2b-256 checksum
How to use checksums
b774746fd6137d57fe367612b76a192281c586fc82e6e33e78f960170ee3e356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / PyFastNER-1.0.10a0-py3-none-any.whl

Download URL PyFastNER-1.0.10a0-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5676eb25f82d074ae4f7bd001b322f053665f87d20b71069922d7d1557b6f32
BLAKE2b-256 checksum
How to use checksums
a3459347f0f106fc9acdf15234afb1bd7c56131a31ff41146b1047d01c1c9129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for PyFastNER 1.0.10a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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