-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NumPy/SciPy not supported by IronPython #2
Comments
I was on IronPython 2.7.9, After doing above steps, Now, "Nltk.Init(new List throws error "Could not load file or assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) |
@saifu-rahman |
My Ironpython version is 2.7.9 and is installed in directory "C:\IronPython279". C# Code: Exception: So my conclusion here is, after running the solution commands, I got new folders: 'IronPython279\Libs\site-packages\scipy' and 'IronPython279\Libs\site-packages\numpy', but seems like numpy import (which is a dependent for NLTK) in my C# program is expecting a different version of IronPython??
|
Perhaps relevant |
Here is the instruction of how to setup NumPy/SciPy for IronPython:
Install NumPy/SciPy libraries for IronPython
NumPy
library is used by some NLTK functions such asnltk.ne_chunk()
(Named Entity Recognition).So, follow this steps to install NumPy library for IronPython:
ipy ironpkg-1.0.0.py --install
ironpkg scipy
to install NumPy and SciPy libraries.ironegg scipy-1.0.0-2.egg
andironegg numpy-2.0.0-1.egg
(versions may be changed)Follow this StackOverflow question for actual information.
Issue
After installation you'll get expception related to NumPy library on call
nltk.ne_chunk()
from IronPython. This is not NltkNet issue itself. This means NumPy library is not supported by IronPython. I assume because NumPy has native C-calls inside it.Please let me know, if you got success or workarround by running NumPy with IronPython.
The text was updated successfully, but these errors were encountered: