Skip to content

NumPy/SciPy not supported by IronPython  #2

@nrcpp

Description

@nrcpp

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 as nltk.ne_chunk() (Named Entity Recognition).
So, follow this steps to install NumPy library for IronPython:

  1. Download ironpkg-1.0.0.py from https://raw.githubusercontent.com/ptmono/anipang_b/master/ironpkg-1.0.0.py to IronPython folder
  2. Run console and cd to IronPython folder there. So you will be able to run ipy ironpkg-1.0.0.py --install
  3. After ironpkg and ironegg was installed, run ironpkg scipy to install NumPy and SciPy libraries.
  4. In case you've got errors on installation, then download numpy and scipy egg files from here http://code.enthought.com/.iron/eggs/index.html
  5. Then run ironegg scipy-1.0.0-2.egg and ironegg numpy-2.0.0-1.egg (versions may be changed)
  6. Make sure you've got folders <IronPython Path>\Libs\site-packages\scipy and <IronPython Path>\Libs\site-packages\numpy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions