mitie icon indicating copy to clipboard operation
mitie copied to clipboard

Get node-bindings for mitie to work on Linux (CentOS 6)?

Open herbyme opened this issue 10 years ago • 3 comments

Hi,

It appears that the mitie node-bindings is specifically targeted at Mac OS X (via homebrew). Just wondering if you had any success in getting this to work in Linux?

I have done something similar to homebrew https://github.com/Homebrew/linuxbrew/blob/master/Library/Formula/mitie.rb:

wget https://github.com/mit-nlp/MITIE/archive/master.zip
unzip master.zip
cd MITIE-master
make
sudo cp mitielib/libmitie.* /usr/local/lib/
sudo cp -R mitielib/include/* /usr/local/include/

I noticed that with the repo I was getting a -fno-rtti error as described in the fork I did (Linux branch): https://github.com/herbyme/mitie/commit/e829290c1bcd27ac88424deaede0725ad2384ae5

However, I am still getting errors to do with dlib as shown here: http://pastebin.com/18XyE057

If you can suggest any way to get it working in Linux (in particular CentOS 6) that would be greatly appreciated.

Thanks for your assistance, Herbert

herbyme avatar Sep 17 '15 08:09 herbyme

Sorry @herbyme, just seeing this. The homebrew formula is specific to os x, so you may want to check mitie's install instructions: https://github.com/mit-nlp/MITIE

bhelx avatar Jan 10 '16 20:01 bhelx

Also can't make it work on Debian. While node-gyp I get:

../src/entity_extractor.cc: In static member function 'static void EntityExtractor::Predict(const Nan::FunctionCallbackInfo<v8::Value>&)':
../src/entity_extractor.cc:77:13: error: 'class mitie::named_entity_extractor' has no member named 'predict'
   obj->ner_.predict(tokens, chunks, chunk_tags, chunk_scores);
             ^

@herbyme Did you make it work?

maxmert avatar Jul 05 '16 16:07 maxmert

@maxmert @herbyme Please let me know if you get it working, would like to add to README

bhelx avatar Jul 05 '16 17:07 bhelx