A pure-Python implementation of the Linear-Chain Conditional Random Fields
A pure-Python implementation of the Linear-Chain Conditional Random Fields
A pure python implementation of the Linear-Chain Conditional Random Fields
You can test this code with CoNLL 2000 Chunking Data.
# format
python3 crf_train.py
# example
python3 crf_train.py data/chunking_small/small_train.data small_model.json# format
python3 crf_test.py
# example
python3 crf_test.py data/chunking_small/small_test.data small_model.jsonAccuracy
| crf | CRF++ | |
|---|---|---|
| chunking_full | 0.960128 | 0.960128 |
| chunking_small | 0.899072 | 0.889474 |
MIT
An Introduction to Conditional Random Fields / Charles Sutton, Andrew McCallum/ 2010
No open issues yet, or sync has not completed.