A complete analysis of a geometric diagram hinges on interpreting both its fundamental primitives and the accompanying natural language text, yet existing models struggle to process the rich semantics within these descriptions, often leading to ambiguity and restricted reasoning. To address this, our work introduces a method that deeply integrates a Transformer-based text encoder within a sophisticated visual parsing architecture. Central to our approach is a novel Semantic-Guided Cross-Attention mechanism, which uses a global sentence representation as a semantic query to dynamically guide the model’s focus toward the most relevant visual primitives based on the textual context. This end-to-end process generates context-aware visual features that are then processed by a Graph Neural Network (GNN) to perform robust cross-modal reasoning. Validated on the large-scale PGDP5K and IMP-Geometry3K datasets, our method demonstrates substantial accuracy improvements in relationship parsing and geometric proposition generation, especially in challenging cases involving text-diagram ambiguity, and significantly surpasses current state-of-the-art baselines by offering a more effective framework for fusing deep textual semantics with visual information.



