Skip to main content

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

Metadata

Release files for linked-claims-extractor 0.1.1

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

Source distribution (sdist)

Source distribution for linked-claims-extractor 0.1.1
File Size Uploaded
linked_claims_extractor-0.1.1.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linked-claims-extractor 0.1.1
File Interpreter ABI Platform
linked_claims_extractor-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / linked_claims_extractor-0.1.1.tar.gz

Download URL linked_claims_extractor-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4089657242e8f023b0eeed0a8d8d5171835ce45952c728a4ded4c43c854b0cff
BLAKE2b-256 checksum
How to use checksums
5b503f146f883a2425b71e1d5b67b76b8703bc21670d46dc850c5fee7b7a7373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release files / linked_claims_extractor-0.1.1-py3-none-any.whl

Download URL linked_claims_extractor-0.1.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c17f535213d3a856af4479d475623894f37ea1c53efb26f92cc4796104c2b8b
BLAKE2b-256 checksum
How to use checksums
bbbfece547b0e7b884b0a4cb4cb8f28c0727ffee9590a6af80b23395f39c1bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release history Release notifications | RSS feed

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.1 This release

2 release files

0.1.0

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