Expand description
§Concept Graph Builder
A semantic concept graph that extracts concepts from text, builds weighted relationships, and enables concept-based navigation and similarity search.
The graph supports:
- Automatic concept extraction via tokenization
- Co-occurrence-based edge weighting
- Explicit semantic relation tagging (synonym, hierarchical, antonym, related)
- BFS shortest-path computation
- Embedding-based or graph-topology-based similarity search
- Pruning by frequency and edge weight
Structs§
- CgConcept
- A node in the concept graph.
- CgConcept
Edge - A directed (but treated as undirected for traversal) weighted edge.
- CgGraph
Config - Build-time configuration.
- Concept
Graph Builder - Builds and queries a semantic concept graph.
- Concept
Graph Stats - Snapshot statistics about the concept graph.
- Concept
Id - Opaque concept index newtype.
Enums§
- CgConcept
Relation - Semantic relation between two concepts.
Functions§
- cosine_
similarity - Cosine similarity between two equal-length vectors.
- tokenize
- Split
texton whitespace and ASCII punctuation; lowercase; keep tokens with at least 3 characters.