bhelx / mitie

Node bindings for MIT Information Extraction https://github.com/mit-nlp/MITIE
MIT License
22 stars 14 forks source link

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

Open herbyme opened 8 years ago

herbyme commented 8 years ago

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

bhelx commented 8 years ago

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

maxmert commented 8 years ago

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?

bhelx commented 8 years ago

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