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

Unable to fetch model parameters from python-crfsuite model #112

Open
anandi1989 opened this issue Sep 1, 2019 · 1 comment
Open

Unable to fetch model parameters from python-crfsuite model #112

anandi1989 opened this issue Sep 1, 2019 · 1 comment

Comments

@anandi1989
Copy link

I have one CRF model build using python-crfsuite. I want to check previous model parameter which is used to built the model. Now, I load the model and goes through the model header and I got this:

{u'magic': u'lCRF',
 u'num_attrs': u'14736',
 u'num_features': u'0',
 u'num_labels': u'6',
 u'off_attrrefs': u'0x147EC0',
 u'off_attrs': u'0xA254B',
 u'off_features': u'0x30',
 u'off_labelrefs': u'0x147DFC',
 u'off_labels': u'0xA1C70',
 u'size': u'1593456',
 u'type': u'FOMC',
 u'version': u'100'}

What I was looking for is algorithm name (e.g. ‘lbfgs’, ‘l2sgd’, ‘ap’, ‘pa’, ‘arow’) and respective hyper parameters. Can anybody help me figuring out model parameters.

@parinaya-007
Copy link

hi @anandi1989
you can simply print the loaded model in a notebook and it will give you the algorithm, hyperparameters, etc, details.

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