type : cd .. (to go one folder up)
then instead of openlp try: bin/openlp blah  blah

Sent from my mobile...



Katherin Pérez <[email protected]> wrote:

Hi!

I created the folder as you say, extracted the en-sent.zip (two files
inside), and pasted the file I want to process. But each time I type:

opennlp SentenceDetector -help
"opennlp" is not recognized as an internal or external command, operable
program or batch file
And it stays in the same folder... :(

On Sun, May 6, 2012 at 6:54 PM, Jim - FooBar(); <[email protected]>wrote:

> 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
>
>


-- 
Katherin Pérez Rojas
Traducción inglés francés español
Master in Natural Language Processing and Human Language Technologies
Celular españa: +34 682 14 77 87

Reply via email to