Conditional Random Field (CRF)
Overview
- Wikipedia: Conditional random field
- Paper: An Introduction to Conditional Random Fields
- CRF as Recurrent Neural Networks
Implementations
- C++:
- taku910/crfpp (CRF++)
- chokkan/crfsuite (Fast)
- Java:
- isher-stern/CRF
- vinhkhuc/jcrfsuite (CRFsuite wrapper)
- TensorFlow: contrib.crf
Tools & Corpora
- YamCha - Yet Another Multipurpose CHunk Annotator.
- CoNLL-2000 Chunking Task
CRF++ Usage
# Installation
git clone https://github.com/taku910/crfpp.git
cd crfpp
./configure --prefix $PWD/dist
# Fix windows include on Linux/Mac if needed
# sed -i '/#include "winmain.h"/d' crf_test.cpp crf_learn.cpp
make install
# Training
crf_learn pattern.txt train.data model.bin -t