Skip to main content

Linked Claims Extractor

The Linked Claims Extractor is a tool that uses AI language models to extract claims from text, URLs, or PDFs. It supports multiple LLMs, including Anthropic and OpenAI, and allows users to define custom schemas for claim extraction.


Installation

To install the Linked Claims Extractor, run:

pip install linked-claims-extractor

You will need to set the ANTHROPIC_API_KEY environment variable if you are using the Anthropic model:

export ANTHROPIC_API_KEY=your_api_key_here

Usage

Extracting Claims from Text

from claim_extractor import ClaimExtractor

extractor = ClaimExtractor()
result = extractor.extract_claims('some text')

import pprint
pprint.pprint(result)

Extracting Claims from a URL

result = extractor.extract_claims_from_url('https://example.com')
pprint.pprint(result)

Development and Testing

To set up the development environment, run:

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

To run tests, use:

pytest -s --pdb

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your changes.


License

This project is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for linked-claims-extractor 0.1.6

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.6
File Size Uploaded
linked_claims_extractor-0.1.6.tar.gz 8.5 kB Details

Built distribution (wheel)

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

Total release size: 15.5 kB

Release files / linked_claims_extractor-0.1.6.tar.gz

Download URL linked_claims_extractor-0.1.6.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
78a62fd16800187bcc52f18cfcd3496802472e2efcc1eaaed0654ef85b13666e
BLAKE2b-256 checksum
How to use checksums
341270d59b54652145afa52c187e5571df0613c22c815f190a4aa909b876beb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

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

Download URL linked_claims_extractor-0.1.6-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32eecc4b80c596e5a8637c567f1ee72e63618daedacb348dfde41af8490dcc49
BLAKE2b-256 checksum
How to use checksums
e02e41d69d3c64fddf4d6c7e83549de3861d8deb199dd7deedda87b56b24b363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.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

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.1

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