I'm so sorry...windows uses "\" instead of "/" so the correct command to navigate into the folder is :

"cd Downloads\apache-opennlp-1.5.2-incubating\bin"

JIm

On 06/05/12 16:38, Jim - FooBar(); wrote:
Ok, a couple of issues...
first of all bin is not a command, it is the folder where the openNLP cli is located... You use 'cd' to navigate to the folder you want and then you can run opeNLP command-line interface.

So you need to do the following:
'cd Downloads\apache-opennlp-1.5.2-incubating/bin'
'opennlp help'

if at this point you can see the cli help you're good to go...

Specifically for the Sentence Detector you need to type in :
'opennlp SentenceDetector model < sentences'

where "model" is a string that specifies the path to your model (e.g: "models/V1.5/en-sent.bin") and "sentences" is a string to the actual file containing the text you want to detect sentences for
 (e.g: "data/some-text.txt").

Hope that helps...

Jim

ps: I've not touched stinky windows for a long time but i think the command to navigate to folders is indeed "cd" ("cd .." if you want to go back a folder)...if i remember correctly "dir" is the command to display all contents of a folder and I'm pretty sure you can run opennlp wihtout a "./" as you would do in linux ("./opennlp SentenceDetector blah blah blah") if you were already in that folder.


On 06/05/12 16:13, Katherin Pérez wrote:
Hello,

I am new using OpenNLP. I am translator and beginning to study a master in NLP. I am not programmer and my computer skills are very basic. I need to
use OpenNLP to run the sentence detector for a project I’m working in.

However, I have this problem when opening the program.
 From this website (
http://www.oracle.com/technetwork/java/javase/downloads/index.html) I
downloaded and installed the Java version: Java 7e su 4 JDK,
jdk-7u4-windows-i586.exe (Windows x86). Check it and is working (My system
is windows 7).

However, when I try to open the openNLP program from the cmd this message
appears
C:Users\Kate>cd
<C:\Users\Kate\Downloads\OpenNLP>\apache-opennlp-1.5.2-incubating
Acces denied

C:\Users\Kate>bin/opennlp
"bin" is not recognised as an internal or external command, program or
executable lot file
I downloaded the package apache-opennlp-1.5.2-incubating-bin.zip extracted
it in one of my folders and typed the commands, but those are the errors
appearing.

I already have the preprocessed files; I just need to segment them in
sentences in both English and Spanish to align them later.

Can anyone help me, please?

Thank you



Reply via email to