define CRF++ template file

后端 未结 2 1829
逝去的感伤
逝去的感伤 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:14

    It seems that this issue arises from not clearly understanding how CRF++ is processing the training file. Your features may not include the values in the last column. These are the labels! If you were to include them in your features, your model would be trivially perfect! When you define your template file, because you only have two columns, it can only include rules of the form %x[n,0]. It is hardcoded into CRF++ (though not clearly documented, as far as I can tell), that -4 <= n <= 4.

提交回复
热议问题