Skip to main content

Semantic Hypergraph Alpha-Beta 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.3.0.tar.gz (22.4 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.3.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hyperbase_parser_ab-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e773837e573551554532ceef27e20165a9179ea78953219d7c35de6361b7e816
MD5 20c0d1b5f7f8b902d1484904348ec6e8
BLAKE2b-256 5e071e45d3d0a6a05ba528a389a70fdc78bb8d70acc8035fbdf05481a3fe5797

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hyperbase_parser_ab-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45647af586e10a4384a0a33643d3bd2a5d06a449e014a79008a89ae0939903ad
MD5 4013c3c6148801573b8fc243a8eee36e
BLAKE2b-256 22b212603c8e6e84aa69f0b850ecb0b941852721386b309428c8cfefec2850df

See more details on using hashes here.

Provenance

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