Skip to content

[Showcase/Request] GLiNER2 Pipeline implementation in Go (hugot-gliner2) #129

Description

@josejuanmontiel

Hi there!

I'm a big fan of hugot and its mission to bring transformer pipelines to the Go ecosystem. I wanted to share a project I've been working on: hugot-gliner2 (https://github.com/josejuanmontiel/hugot-gliner2).

It's a 100% native Go implementation of the GLiNER2 (Unified Schema-Based Information Extraction) relationship extraction pipeline. It currently provides:

  • Zero-dependency (besides ONNX Runtime) end-to-end extraction from raw text.
  • Native tokenization and word-to-subword alignment (no Python required).
  • Mathematical equivalence with PyTorch linear projections using Gonum for classification heads.
  • Support for Entity and Relation extraction in a single unified flow.

I noticed that hugot already supports several pipelines like tokenClassification and zeroShotClassification. GLiNER2 fits very well with these use cases but provides a unified schema-driven approach that might be a great addition or a complementary project.

I'm sharing this in case you find it interesting for potential integration into hugot (as a new pipeline type) or simply to let the Go ML community know there's a native way to run these state-of-the-art models.

Thanks for the great work on hugot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions