Skip to main content

Semantic Hypergraph AlphaBeta Parser

Project description

Hyperbase Alpha-Beta Parser

A semantic hypergraph parser for natural language

The Alpha-Beta parser is a Hyperbase plugin that converts natural language text into Semantic Hypergraphs (SH). It works in two stages:

  • Alpha stage: A multilingual neural token classifier (based on DistilBERT) assigns one of 39 semantic atom types to each token in a sentence -- for example, concepts, predicates, modifiers, builders, triggers and conjunctions.
  • Beta stage: A rule-based engine combines classified atoms into ordered, recursive hyperedges using syntactic and semantic composition rules, producing structured representations that can be manipulated with Hyperbase.

Supported languages

The parser supports any language with a spaCy model available, including English, French, German, Italian, Portuguese and Spanish.

While the parser is theoretically language-agnostic and could in principle support languages such as Mandarin, which differ substantially in morphological and syntactic structure, the authors' linguistic competence is limited to Germanic and Romance languages. We welcome the help of native speakers or domain experts in validating/improving support for other language families.

Installation and manual

Installation instructions, the manual and more information can be found here: https://hyperquest.ai/hyperbase

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperbase_parser_ab-0.1.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperbase_parser_ab-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file hyperbase_parser_ab-0.1.0.tar.gz.

File metadata

  • Download URL: hyperbase_parser_ab-0.1.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hyperbase_parser_ab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64e09a2660d45d36eae013848fbb238fd785986caa89a10f47f513d2bdce85b8
MD5 e9b874815333d453308785135ff53b75
BLAKE2b-256 d8e7ed608f89be0d043bb0eb99a78d94961c32a396b5bd3bb91e7e7c582a66f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperbase_parser_ab-0.1.0.tar.gz:

Publisher: publish.yml on hyperquest-hq/hyperbase-parser-ab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hyperbase_parser_ab-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperbase_parser_ab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93d5644caa0729ccd5c9d9a3311af865cec39229d441de75b3a080aee6c04efd
MD5 6b6e8569a917dbc6cf6fc1e6aa79a191
BLAKE2b-256 c46f458a475e9f007c353feade7c71391961e6a0d5d385db7928f8025373ca41

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperbase_parser_ab-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hyperquest-hq/hyperbase-parser-ab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page