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

Row index represents the current state, and column index represents the next state in the transition matrix of CRF? #71

Open
lkqnaruto opened this issue Dec 8, 2021 · 1 comment

Comments

@lkqnaruto
Copy link

Hi

I'm little bit confused about the index of CRF transition matrix. I wonder whether the row index represents the current state, and column index represents the next state in the transition matrix of CRF? Would it be same for the case if they are switched?

self.transitions.detach()[self.tag_dictionary[self.START_TAG], :] = -10000

I notice in your code, row index is the start state, and column index is the next state. I wonder whether it would be the same if I use row index to be the next state and column index to be the current state?

@YueCongPKU
Copy link

YueCongPKU commented Dec 8, 2021 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