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

Support Variable length in non-projective and in alignment #62

Open
srush opened this issue Mar 24, 2020 · 4 comments
Open

Support Variable length in non-projective and in alignment #62

srush opened this issue Mar 24, 2020 · 4 comments

Comments

@srush
Copy link
Collaborator

srush commented Mar 24, 2020

Generalize the length argument support for both of these classes.

@kmkurn @tyang92

@kmkurn
Copy link
Contributor

kmkurn commented Mar 25, 2020

I actually have a working code for variable-length matrix-tree for labeled tree: https://gist.github.com/kmkurn/fb34ad169466b050dddac1de2d1f7b93. This also handles overflow bc of exp when the potentials are extremely positive. I did try to make a PR, but it's not finished yet and I can't say when.

@srush
Copy link
Collaborator Author

srush commented Mar 25, 2020

Take you time. Would love to have this incorporated whenever you have a chance.

@kmkurn
Copy link
Contributor

kmkurn commented Mar 25, 2020

Great! For now, I hope my code can help those who need it quickly. Another thing, what can be done easily in the meantime is maybe raise an error/warning if lengths is passed? Because right now it may mislead users thinking variable-length is supported.

@srush
Copy link
Collaborator Author

srush commented Mar 25, 2020 via email

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

No branches or pull requests

2 participants