Giter Club home page Giter Club logo

Comments (2)

kaushikacharya avatar kaushikacharya commented on June 9, 2024

@ashikrafi
It seems that you haven't added Perl installed location to the PATH environment variable.
Borodin explains how to do this in https://stackoverflow.com/questions/9454203/installing-perl-in-windows-7/9454713#9454713

In your case, it is probably looking for perl in "C:\Program Files" but due to space it gets truncated into "C:\Program" and that's why it gives the error

Can't open perl script "C:\Program": No such file or directory

To find out location of installed perl in windows, you can execute the following command in command prompt:

where perl

You seem to be getting the error in
https://github.com/Franck-Dernoncourt/NeuroNER/blob/master/neuroner/train.py#L141

shell_command = 'perl {0} < {1} > {2}'.format(conll_evaluation_script,
                output_filepath, conll_output_filepath)
os.system(shell_command)

You need to check:

  • Are you able to run a simple perl script from say C:/ folder in command prompt?
  • Are you able to run this perl script from python as mentioned in shell_command?

from neuroner.

ashikrafi avatar ashikrafi commented on June 9, 2024

@kaushikacharya
Thank you very much. Now It works.

In my case, it was looking for a perl file in "C:\Program Files" but due to space it gets truncated into "C:\Program" and that's why it gave the error.

Thank you.

from neuroner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.