记录部署crf 遇到的问题

来源:互联网 发布:华为软件管理流程 编辑:程序博客网 时间:2024/05/21 04:43
1.安装时需要有gcc,g++;   

2.make时,报如下错误   
In file included from node.h:13:0,   
                 from node.cpp:9:   
path.h:26:50: error: ‘size_t’ has not been declared   
   void calcExpectation(double *expected, double, size_t) const;   
                                                  ^  
make[1]: *** [node.lo] Error 1   

需要在node.cpp文件加入 #include "stdlib.h"  。原因大致是ubuntu14.04安装的gcc 不会默认引入stdlib.h 。

3.如果make install后使用crf_learn报错如下:   

error while loading shared libraries: libcrfpp.so.0:   

需要手动将CRF++-0.54/.lib/libcrfpp.so.0复制到/usr/lib下。   

4.若在crf_test -m moedl testfiles >> resulte.data后cat resulte.data显示结果不对,   
需要用vi或less打开查看,目前尚不清楚原因,cat不能正常显示该结果。
0 0
原创粉丝点击