chokkan / crfsuite

CRFsuite: a fast implementation of Conditional Random Fields (CRFs)
http://www.chokkan.org/software/crfsuite/
Other
641 stars 208 forks source link

How do I use glove on crfsuite with python? #116

Open bjayakumar opened 4 years ago

bjayakumar commented 4 years ago

How to incorporate glove feature inside word2featueres function?

franklevasseur commented 3 years ago

@bjayakumar, this is not the right place to ask this question. You better post your question here.

jwijffels commented 3 years ago

Hello @chokkan or maybe @kmike I'm the author of the R wrapper at https://github.com/bnosac/crfsuite which uses the C++ API of crfsuite and I have the same question. Does incorporating embeddings correspond in the C++ API to appending the following types: CRFSuite::Attribute("embeddingdimension1", 0.123). I personally only did something like add categorical features like this CRFSuite::Attribute("categoryA", 1.) at https://github.com/bnosac/crfsuite/blob/master/src/rcpp_crfsuite.cpp#L87 because the docs were confusing about adding embedding So is adding features like the following the correct way?

CRFSuite::Attribute("embeddingdimension1", 0.123)
CRFSuite::Attribute("embeddingdimension2", -0.31)

...