windowsbatch-fileopennlpsystem-variablesystem-paths

How Can I install two version of opennlp?


I want to install opennlp-1.6.0 and opennlp-1.5.3 on windows i've tried it like this, added the system variables

enter image description here

and the path

enter image description here

when I open the command prompt and type opennlp, output is as expected

C:\>opennlp
OpenNLP 1.6.0. Usage: opennlp TOOL  
where TOOL is one of:
Doccat                            learnable document categorizer
DoccatTrainer                     tr.............

but when I type opennlpl, this is what happens!

C:\>opennlpl
'opennlpl' is not recognized as an internal or external command,
operable program or batch file.

How to fix this?


Solution

  • for your opennlpl to work, you must have opennlpl.bat file in the root folder. you must be having opennlp.bat in both the root folders which is why it isn't working.

    But having two versions my guess is you want to train your models using both versions, you can train your models using opennlp-1.5.3 which are compatible for higher version also but the vice-versa isn't true. so, just configure it for opennlp-1.5.3 and you should be fine.