define CRF++ template file

后端 未结 2 1733
逝去的感伤
逝去的感伤 2021-01-28 11:41

This is my issue, but it doesn\'t say HOW to define the template file correctly.

My training file looks like this:

上   B-NR
海   L-NR
浦   B-NR
东   L-NR
开         


        
2条回答
  •  醉话见心
    2021-01-28 12:16

    CRF++ is extremely easy to use. The instructions on the website explains it clearly.

    http://crfpp.googlecode.com/svn/trunk/doc/index.html

    Suppose we extract feature for the line 东 L-NR

    Unigram

    U02:%x[0,0] #means column 0 of the current line

    U03:%x[1,0] #means column 0 of the next line

    So the underlying feature is "column0=开"

    Similar for bigrams

提交回复
热议问题