Skip to main content

Extract structured claims from text and PDFs

Project description

linked-claims-extractor

Extract claims from text, url or pdf using AI LLMs to help

Installation and Usage

pip install linked-claims-extractor

Default is to use Anthropic which requires setting export ANTHROPIC_API_KEY=...

from claim_extractor import ClaimExtractor

extractor = ClaimExtractor()
# or extractor = ClaimExtractor(llm=your_llm, schema=schema_from_list)

result = extractor.extract_claims('some text')

pprint(json.loads(result))

Developer Environment

This project uses pyproject.toml for dependencies

python -m venv .venv
. .venv/bin/activate
pip install -e .

Testing and Debugging

pytest -s --pdb

Project details


Download files

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

Source Distribution

linked_claims_extractor-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

linked_claims_extractor-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file linked_claims_extractor-0.1.1.tar.gz.

File metadata

File hashes

Hashes for linked_claims_extractor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4089657242e8f023b0eeed0a8d8d5171835ce45952c728a4ded4c43c854b0cff
MD5 118c38ad81a9a685d873895f1bc50535
BLAKE2b-256 5b503f146f883a2425b71e1d5b67b76b8703bc21670d46dc850c5fee7b7a7373

See more details on using hashes here.

File details

Details for the file linked_claims_extractor-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for linked_claims_extractor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c17f535213d3a856af4479d475623894f37ea1c53efb26f92cc4796104c2b8b
MD5 41b6580bfc57aa8418a761751de40fc3
BLAKE2b-256 bbbfece547b0e7b884b0a4cb4cb8f28c0727ffee9590a6af80b23395f39c1bd7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page