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.4

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.4
File Size Uploaded
linked_claims_extractor-0.1.4.tar.gz 6.9 kB Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / linked_claims_extractor-0.1.4.tar.gz

Download URL linked_claims_extractor-0.1.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
720ee8a764a6c7478f4beaf1ba634dac9382a46b18d2c388bce0acc52bb1deb4
BLAKE2b-256 checksum
How to use checksums
595bb9376ff08668809341c56b7f849975fd299c34c8d26728e71366dc57863c
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.4-py3-none-any.whl

Download URL linked_claims_extractor-0.1.4-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9677264285c8c84dfac1a43dc8a009c0f1410bfe3d1646576d7ee33fe2067402
BLAKE2b-256 checksum
How to use checksums
6cb612c109e3a7557406f8c56df52d1e5dedfa557614dac1bf2bf99b06814874
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

0.1.6

2 release files

0.1.5

2 release files

This release

0.1.4 This release

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