python-crfsuite icon indicating copy to clipboard operation
python-crfsuite copied to clipboard

Unable to fetch model parameters from python-crfsuite model

Open anandi1989 opened this issue 5 years ago • 1 comments

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.

anandi1989 avatar Sep 01 '19 05:09 anandi1989

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

parinaya-007 avatar Feb 23 '21 10:02 parinaya-007