Method Registry¶
Registry functions and configuration for extraction methods.
Registry Functions¶
hyperextract.methods.registry
¶
Method Registry - Central registry for all extraction methods.
This module provides a unified registry for method templates, enabling consistent creation and management of method-based knowledge extraction.
Functions¶
register_method(name: str, method_class: Type, autotype: str, description: str = '') -> None
¶
Register a method in the registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Method name (e.g., "light_rag") |
required |
method_class
|
Type
|
The method class |
required |
autotype
|
str
|
AutoType category (e.g., "graph", "hypergraph") |
required |
description
|
str
|
Method description |
''
|
get_method(name: str) -> Optional[Dict[str, Any]]
¶
Get method info by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Method name |
required |
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
Method info dict or None if not found |
list_methods() -> Dict[str, Dict[str, Any]]
¶
List all registered methods.
Returns:
| Type | Description |
|---|---|
Dict[str, Dict[str, Any]]
|
Dict mapping method names to their info |