Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-root non-projective dependency crf with lengths mask #87

Merged
merged 7 commits into from Jan 15, 2021

Conversation

chijames
Copy link
Contributor

@chijames chijames commented Jan 6, 2021

Hi,

I implement the feature as stated in title. The implementation basically follows section 3.3 of [1] with similar gradient update rules for marginals (like those in 3.2). I check marginals using the log-partition/marginals identity and they are the same. Let me know if anything needs to be improved!

[1] Structured Prediction Models via the Matrix-Tree Theorem. Koo et al. 2007.

@srush
Copy link
Collaborator

srush commented Jan 11, 2021

This is great thanks for contributing.

Sorry the repo is having some issues due to the travis. I will fix it up this week and add tests.

chijames and others added 2 commits January 14, 2021 05:35
@srush srush merged commit 9083dd4 into harvardnlp:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants