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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linked_claims_extractor-0.1.5.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linked_claims_extractor-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / linked_claims_extractor-0.1.5.tar.gz
| Download URL | linked_claims_extractor-0.1.5.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d78feeaaef7a86ada89fa9d9ddc69d4164091f4e44a477578c256382fa2a7e76
|
|
BLAKE2b-256 checksum How to use checksums |
82cb6c9fce9926caa3f25ef6078fe76109f85627826ffc352b8ea98ee5910d4e
|
| 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.5-py3-none-any.whl
| Download URL | linked_claims_extractor-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e25f6e6e1a868d2eaa7b72e1c046c9857f4deaa543e581cec46658ff2784c860
|
|
BLAKE2b-256 checksum How to use checksums |
9667fb9c516840b0269c6efd108c40508e7a306c67a4409f43a72399664c48ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|