Template Library¶
Choose a template based on what you want to extract.
I want to analyze...¶
-
Research Papers
Extract concepts, methods, results, and relationships
- Concept Graph — Recommended
- Knowledge Graph
- Document Structure
-
Biographies & Profiles
Extract life events, relationships, and timeline
- Biography Graph — Recommended
- Person Summary
-
Financial Reports
Extract earnings, risks, and ownership structures
- Earnings Summary — Recommended
- Risk Factors
- Ownership Graph
-
Legal Documents
Extract obligations, cases, and compliance items
- Contract Obligations — Recommended
- Case Timeline
- Defined Terms
-
Medical Records
Extract symptoms, treatments, and timelines
- Hospital Timeline — Recommended
- Drug Interactions
- Discharge Summary
-
TCM Texts
Extract herb properties and formula compositions
- Herb Properties — Recommended
- Formula Composition
- Meridian Graph
-
Industrial Documents
Extract equipment, safety, and operation flows
- Equipment Topology — Recommended
- Safety Controls
- Operation Flow
Not sure what to choose?¶
By task type:
| Task | Recommended Template |
|---|---|
| Summarize a document | general/model |
| Extract a list of items | general/list |
| Build a knowledge network | general/graph |
| Create a timeline | general/base_temporal_graph |
By output type:
| Output | Auto-Type | Use When... |
|---|---|---|
| Structured summary | AutoModel | Need a report |
| Network/Graph | AutoGraph | Need relationships |
| Timeline | AutoTemporalGraph | Need time sequence |
Quick Start¶
# List all templates
he list template
# Use a template
he parse document.md -t general/biography_graph -l en -o ./output/
from hyperextract import Template
# Create template
ka = Template.create("general/biography_graph", "en")
# Extract
result = ka.parse(text)
Browse All Templates¶
Create Custom Templates¶
Need something specific? Learn to create your own: