I am looking for a conditional random field (CRF) implementation with a Python API that allows a CRF model to be trained multithreadedly.

I currently use pyCRFsuite, which works great except that CRF models cannot be trained with more than one threads. I use it for natural language processing purposes.

Ideally it should work on Linux.


1 Answer 1


https://github.com/adsva/python-wapiti can use multiple threads at training time.

With crfsuite you can still do hyperparameter search in parallel, see e.g. an example at https://github.com/TeamHG-Memex/sklearn-crfsuite/blob/master/docs/CoNLL2002.ipynb


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.