Skip to content

On the first order implementation #2

@teffland

Description

@teffland

Hi,

I really enjoyed the paper -- a super interesting read and I learned a lot!

In case you're interested, I wanted to point you to an nonprojective entropy implementation in torch_struct that is quite efficient (should you have future use cases for it.) A similar derivation can be used for other additively factorable functions as well.

PR: harvardnlp/pytorch-struct#103

Colab comparison: https://colab.research.google.com/drive/1iUr78J901lMBlGVYpxSrRRmNJYX4FWyg?usp=sharing

Best,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions