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.2.0.tar.gz (20.1 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.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyperbase_parser_ab-0.2.0.tar.gz
  • Upload date:
  • Size: 20.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 07f93db62c68706c96ab6fc86ea9e54b0a8cb05bd8d1c21d197d43e4a59fd4b0
MD5 ce3b24fdeee2bf6bad6c9d96a51c3ce4
BLAKE2b-256 61bebee69f5f9732e30f037aad51711b6c3d351a0de6a995994063f726451142

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperbase_parser_ab-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperbase_parser_ab-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d836f3bebfe5f695b0f9f3b501d94d2e786a8a1589eb074d72732656914677
MD5 8c83b57f94ca505bbd240ea7b135d930
BLAKE2b-256 453a27c7c957ec00a0b8f6a326f0bf238992faf7405d4a8a336c9f3e908d9411

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyperbase_parser_ab-0.2.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