vibe.review.parsing.semantic.extractor¶
Semantic extraction from document structure.
Extracts contract-specific semantics: - Clause numbering and hierarchy - Definitions - Cross-references - Parties - Rule-based tagging for enhanced classification
SemanticConfig ¶
Configuration for semantic extraction.
SemanticExtractor ¶
Extract semantic information from document structure.
Converts DocumentStructure into SemanticDocument with: - Hierarchical clause structure - Defined terms - Resolved cross-references - Identified parties - Rule-based semantic tagging
__init__ ¶
__init__(config: SemanticConfig | None = None, rules_dir: Path | None = None, rule_engine: RuleEngine | None = None) -> None
Initialize the semantic extractor.
| Parameters: |
|
|---|
extract ¶
extract(structure: DocumentStructure) -> SemanticDocument
Extract semantic information from document structure.
| Parameters: |
|
|---|
| Returns: |
|
|---|