Closed teffland closed 3 years ago
Great, excited to contribute!
Re: your questions
Thanks for the feedback, Tom
I can help with testing. Yes, all the algorithms in torch struct test that the enumeration has the same marginals. Its helped catch a ton of bugs.
Cool, help with the testing would nice but I can also take a crack at it later. When I get to it I'll also incorporate the suggested changes, (and will try it out with view).
Hey sorry, I flaked on helping out here. Send me an email if you want to work on it more. I'm going to do some repo maintenance this week.
Hey, no worries same here. Will send an email
Hi,
I'd like to contribute this implementation of a first-order cky-style crf with anchored rule potentials: $\phi[i,j,k,A,B,C] := \phi(A{i,j} \rightarrow B{i,k}, C{k+1,j})$.
I also added code to the
_Struct
class that allows calculating marginals even if input tensors don't require a gradient (i.e., aftermodel.eval()
)Please let me know if you'd like to see any changes.
Thanks, Tom