xingdi-eric-yuan / named-entity-recognition

A simple NER model in C++
39 stars 45 forks source link

Compile issue during Make on Ubuntu #1

Open mrdeanplumbley opened 9 years ago

mrdeanplumbley commented 9 years ago

Hi,

when I come to do make on this I get the following error:

/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

My gcc compiler is up to date, not sure how to fix.

Any help would be appreciated

Dean

Donnie-Liu commented 9 years ago

I got the same error, and fixed it with the following method: Opening CMakeLists.txt, and add a line: set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") I can use "./NER 2" to run, however, when I use "./NER 4" to do named-entity recognition, I got the error: Can not find the model file... My question is where I can find the trained model file.

obskein commented 9 years ago

It's segfaulting before it completes. The trained file should live in network/info_80.xml

obskein commented 9 years ago

It actually doesn't live there. You need to create an empty folder called "kernel" to get this to work.

xingdi-eric-yuan commented 9 years ago

@Donnie-Liu Hi, after training, the model file should be in "network/", ".xml" file for cnn, and ".dat" file for mitie.

Donnie-Liu commented 9 years ago

@obskein @xingdi-eric-yuan Thank you two very much! After I create an empty folder called "kernel", I find the info_80.xml in ./network.

lezakkaz commented 8 years ago

Hey there,

I have problem during make. I had that problem too and added that line to the CMakeLists.txt and it worked but then it showed another error when its building CXX object CMakeFiles/NER.dir/src/weights_IO.cc.o

/usr/local/include/opencv2/core/persistence.hpp:793:41: error: no matching function for call to ‘read(cv::FileNode, __gnu_cxx::__alloc_traitsstd::allocator<std::basic_string >::value_type&, std::basic_string)’

Any help would be appreciated.

Zak