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

my question #2

Open
goog opened this issue Aug 15, 2012 · 2 comments
Open

my question #2

goog opened this issue Aug 15, 2012 · 2 comments

Comments

@goog
Copy link

goog commented Aug 15, 2012

Hey,pal! I couldnt find your email on github, so do like this to ask for help. I'm interesting in CRF so want to code it in python. I'm reading your code and i'm a newbie to CRF. Could you give me a flow diagram or add something more detailed about parameters(I cannt match them to math functions). Any guidance would be greatly appreciated. Thanks very much in advance!

@shuyo
Copy link
Owner

shuyo commented Aug 16, 2012

As I can not lecture a general information on CRF here...

This implementation has 2 type of parameters, feature vectors and regularization (none/L1/L2 and the inverse of regularity).
The feature vectors are specified as list of function objects which return binary value(0 or 1), and consist on 2 type feature, f(y_{i-1}, y_i) and g(y_i, x_i) (see the below link)

http://www.slideshare.net/shuyo/crf-web/29 (Although it is written in Japanese, the graphical model is universal :D)

The 'main' method on crf.py is a sample code to use CRF class. I am happy you to read it.
Thanks.

@goog
Copy link
Author

goog commented Aug 17, 2012

Hi! which formula does the gradient_likelihood() function apply, the expectation here I can't understand it . It seems unlike to the one in P30.(1) in your PPT. or If possible ,please write the gradient_likelihood() formulas to my mail. Thanks very much!!!

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