crfpp icon indicating copy to clipboard operation
crfpp copied to clipboard

Make error for CRF++-0.51

Open ritwikmishra opened this issue 2 years ago • 0 comments

I am trying to install CRF++-0.51 for an old shallow parser. It requires CRF++-0.51.

When I run the installation instructions (written in INSTALL file), I observed that the command failed at the make step of CRF++

I tried to install CRF++-0.51 separately from the official website. I followed these commands: cd Downloads/CRF++-0.51/ --> ./configure --> make but I observed the same error which is as follows.

Makefile:375: recipe for target 'feature_index.lo' failed
make[1]: *** [feature_index.lo] Error 1
make[1]: Leaving directory '/home/ritwik/Downloads/CRF++-0.51'
Makefile:240: recipe for target 'all' failed
make: *** [all] Error 2

The file mentioned above is present in the directory

$ ls feature*
feature_cache.cpp  feature_cache.h  feature_cache.lo  feature_cache.o  feature.cpp  feature_index.cpp  feature_index.h  feature_index.loT  feature.lo  feature.o

However CRF++-0.58 installs successfully. Unfortunately, the shallow parser is not able to run on it.

$ shallow_parser_hin < INPFILE > OUTFILE
/home/ritwik/sampark/shallow_parser_hin/bin/sl/morph/hin/morph_hin.exe: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
Can't open /tmp/sl21031.out: No such file or directory at /home/ritwik/sampark/shallow_parser_hin/bin/sl/morph/hin/addsentencetag.pl line 4.
  File "/home/ritwik/sampark/shallow_parser_hin/bin/sl/guess-morph/hin/guess_morph.py", line 5
    print 'Arguments missing\nPlease provide input and output files'
                                                                   ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Arguments missing\nPlease provide input and output files')?

The shallow parser issue is not related to this repository. I just want to know why there is a make error for installing CRF++-0.51.

ritwikmishra avatar Jun 10 '22 09:06 ritwikmishra