Fork of 2-13-22 Clean Sheet
✓ Published0🌍 Public
This visualization renders a hierarchical knowledge graph from JSON-encoded semantic parses of sentences, showing predicates, arguments, and nested propositional structures. It uses d3.v4 with forceSimulation for layout, rendering nodes and links as SVG elements, while Canvas is used to measure text dimensions for label sizing. Nodes represent nucleus predicates, referents, and modifiers, with links connecting arguments to their cores. The example loads data via d3.json and constructs the graph by iterating through the ContextTrackingData array, handling nested clauses and referent phrases.
AI-generated descriptionMIT Licensed