mit-nlp / MITIE

MITIE: library and tools for information extraction
2.92k stars 534 forks source link

AttributeError: function 'mitie_extract_entities_with_extractor' not found #187

Open uchandr opened 6 years ago

uchandr commented 6 years ago

Hi, When I try to run ner.py, I get the following error File "C:\Users\xxxx\rasa_nlu\MITIE\examples\python\ner.py", line 15, in from mitie import * File "C:\Users\xxxx\rasa_nlu\MITIE\examples\python\mitielib\mitie.py", line 61, in _f.mitie_extract_entities_with_extractor.restype = ctypes.c_void_p File "C:\Program Files\Python37\lib\ctypes__init.py", line 369, in getattr func = self.getitem(name) File "C:\Program Files\Python37\lib\ctypes\init.py", line 374, in getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function 'mitie_extract_entities_with_extractor' not found

I see references to mitie_extract_entities_with_extractor in mitie.cpp and mitie.h which are in C:\Users\xxxx\rasa_nlu\MITIE\mitielib\src and C:\Users\xxxx\rasa_nlu\MITIE\mitielib\include

why is it not able to get to the function call?

davisking commented 6 years ago

Please post complete instructions to reproduce your error, starting with downloading a fresh MITIE copy from the official MITIE repository.

vamsitharun commented 5 years ago

Traceback (most recent call last): File "mitie.py", line 60, in _f.mitie_extract_entities_with_extractor.restype = ctypes.c_void_p File "C:\Users\vamsi\AppData\Local\Continuum\miniconda3\lib\ctypes__init.py", line 364, in getattr func = self.getitem(name) File "C:\Users\vamsi\AppData\Local\Continuum\miniconda3\lib\ctypes\init.py", line 369, in getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function 'mitie_extract_entities_with_extractor' not found

This is the error i am facing while running mitie.py, Kindly anyone help me quickly