Skip to main content

pyannotators-entityfishing

Annotator based on entity-fishing for named entity recognition and disambiguation against Wikidata.

Installation

pip install pyannotators-entityfishing

For noun-form filtering (optional):

pip install pyannotators-entityfishing[spacy]
python -m spacy download en_core_web_sm  # or other language models

Usage

from pymultirole_plugins.v1.schema import Document
from pyannotators_entityfishing.entityfishing import EntityFishingAnnotator, EntityFishingParameters

annotator = EntityFishingAnnotator()
parameters = EntityFishingParameters(
    default_label="ENTITY",
    minSelectorScore=0.3,
)

docs = annotator.annotate(
    [Document(text="Albert Einstein was born in Ulm.", metadata={"language": "en"})],
    parameters,
)

for ann in docs[0].annotations:
    print(f"{ann.start}:{ann.end} {ann.labelName} {ann.terms[0].identifier}")

Development

Install test dependencies:

uv pip install -e ".[test]"

Linting

uv run ruff check src/ tests/
uv run ruff format --check src/ tests/

Testing

uv run pytest

Coverage

uv run pytest --cov=src --cov-report=term-missing

SBOM & vulnerability check

Install the SBOM dependencies:

uv sync --extra sbom

Generate a CycloneDX SBOM from the current environment:

uv run cyclonedx-py environment -o sbom.cdx.json --output-format json

Audit dependencies for known vulnerabilities:

uv run pip-audit --format json --output audit-report.json

To fail on any known vulnerability (useful in CI):

uv run pip-audit --strict

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyannotators_entityfishing-1.6.51.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyannotators_entityfishing-1.6.51-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file pyannotators_entityfishing-1.6.51.tar.gz.

File metadata

  • Download URL: pyannotators_entityfishing-1.6.51.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyannotators_entityfishing-1.6.51.tar.gz
Algorithm Hash digest
SHA256 37529570b4723f9aa9acd2e81af8e5b720a7aed251ed0722380ac9aabb6faf78
MD5 6b3a02ccb71eff21f7ab69e5f52644fc
BLAKE2b-256 201e98d4ed5d9ad20be9d66313f6df077682f1752609b3dbd4ab2943fedbdb31

See more details on using hashes here.

File details

Details for the file pyannotators_entityfishing-1.6.51-py3-none-any.whl.

File metadata

  • Download URL: pyannotators_entityfishing-1.6.51-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyannotators_entityfishing-1.6.51-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b6dd728ba1f9a494224cb596a67b18a57ec97de77691c8a1f491d94f76dbf9
MD5 63e688450d7c083b649890e2f897d278
BLAKE2b-256 cb78a4adee824654d31623fc5cb4eda279d118f10572a0b7615e85b4f016bbb0

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.54

2 files

1.8.52

2 files

1.8.48

2 files

This release

1.6.51 This release

2 files

1.6.49

2 files

1.6.47

2 files

1.6.46

2 files

1.6.44

2 files

1.6.42

2 files

1.6.40

2 files

1.6.38

2 files

1.6.36

2 files

1.6.34

2 files

1.6.30

2 files

1.6.28

2 files

1.6.24

2 files

1.6.22

2 files

1.6.20

2 files

1.6.18

2 files

1.6.16

2 files

1.6.14

2 files

1.6.11

2 files

0.6.36

2 files

0.6.34

2 files

0.6.32

2 files

0.6.30

2 files

0.6.28

2 files

0.6.26

2 files

0.6.24

2 files

0.6.22

2 files

0.6.20

2 files

0.6.18

2 files

0.6.15

2 files

0.6.6

2 files

0.6.4

2 files

0.6.3

2 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