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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file linked_claims_extractor-0.1.1.tar.gz
.
File metadata
- Download URL: linked_claims_extractor-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4089657242e8f023b0eeed0a8d8d5171835ce45952c728a4ded4c43c854b0cff |
|
MD5 | 118c38ad81a9a685d873895f1bc50535 |
|
BLAKE2b-256 | 5b503f146f883a2425b71e1d5b67b76b8703bc21670d46dc850c5fee7b7a7373 |
File details
Details for the file linked_claims_extractor-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: linked_claims_extractor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c17f535213d3a856af4479d475623894f37ea1c53efb26f92cc4796104c2b8b |
|
MD5 | 41b6580bfc57aa8418a761751de40fc3 |
|
BLAKE2b-256 | bbbfece547b0e7b884b0a4cb4cb8f28c0727ffee9590a6af80b23395f39c1bd7 |