A simple CRF implementation by yijia liu