On 06/05/12 17:53, Jim - FooBar(); wrote:
On 06/05/12 17:44, Katherin Pérez wrote:
C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating>opennlp
SentenceDetector
C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating\en-sent.zip
"opennlp" is not recognized as internal or external command, program or
executable lot file.
You are using the wrong command and you need to unzip the model... for
easiness just make a folder where opennlp.bat is and call it "data".
In there unzip your model and also copy whatever text files you want
to process.
Now type:
"opennlp SentenceDetector -help" (you should be seeing the usage
command for the SentenceDetector)
now type:
opennlp SentenceDetector "\data\en-sent.bin" < "data\the-text.txt"
where "the-text.txt" is the name of the file you want to process. You
should be seeing the detected sentences appear on screen. Use ">
output.txt" to redirect output to an empty file called "output".
There is no need to fully qualify the path! I think the classpath is
set to where you invoked opennlp.bat...
Hope that helps - you're almost there! :-)
Jim