What is Hyperbase and Semantic Hypergraphs
masterHyperbase is a Python library designed for working with Semantic Hypergraphs (SH). Semantic Hypergraphs allow for the structured representation of natural language sentences.
For example, the sentence "Einstein first published the theory of relativity in 1905" can be represented in SH notation as a nested structure of semantic roles (e.g., M for modifiers, P.sox for predicates, C for concepts, B.ma for binding markers, and T for temporal markers):
((first/M published/P.sox)
einstein/C
(the/M
(of/B.ma theory/C relativity/C))
(in/T 1905))