scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
770 stars 222 forks source link

Can I train a crf model using multiple thread ? #83

Closed ljch2018 closed 6 years ago

ljch2018 commented 6 years ago

Thank you very much.

uwaisiqbal commented 6 years ago

Is these even possible with the current setup?

kmike commented 6 years ago

No, it is not possible now; this is a limitation of CRFSuite C++ library. You can only train several separate models in parallel for hyperparameter search. There are some attempts to make CRFSuite muti-threaded (https://github.com/chokkan/crfsuite/pulls), but nothing is merged.

I'm closing this ticket because it is better to be discussed in crfsuite bug tracker.