You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Katherin Pérez <ka...@gmail.com> on 2012/05/06 17:13:49 UTC

Help with OpenNLP

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

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

Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
On 06/05/12 16:51, Katherin Pérez wrote:
> Invalid maximum heap size: -Xmx4096m
>
> The specified size exceeds the maximum representable size.

Hmmm, this is suspicious... for some reason the script that loads 
opennllp in Linux uses "-Xmx1024m" as max heap size but the batch file 
for windows uses "-Xmx4096m" which is 4GB!!!

open the file with an editor and change "-Xmx4096m" with "-Xmx1024m" and 
try again...

JIm

Re: Help with OpenNLP

Posted by Katherin Pérez <ka...@gmail.com>.
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(); <ji...@gmail.com>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

Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
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


Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
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...



Re: Help with OpenNLP

Posted by Katherin Pérez <ka...@gmail.com>.
Hi,



It worked (it opens the list of tools), but I still have some problems .



Now I am following the documentation to open the sentence detector and this
is what I get



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.



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<
C:\Users\Kate\Documents\Prueba_Tesis\Textos preprocesados\
Dracula_ENG_prueba.txt

The system cannot find the specified file



Which file cannot find? Because I have both, the en-sent.zip in the apache
folder and the texts to be processed (in another folder)



I am sorry, I know this must be very basic for you, but I really need guide
with this.

Thanks!


On Sun, May 6, 2012 at 6:09 PM, Jim - FooBar(); <ji...@gmail.com>wrote:

> On 06/05/12 17:07, Katherin Pérez wrote:
>
>> Hi
>>
>> Well, actually the file already has 1024
>>
>> $JAVACMD "-Xmx1024m -jar $OPENNLP_HOME/lib/opennlp-**tools-*.jar $@
>>
>
> the other file!!!!
>



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

Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
On 06/05/12 17:07, Katherin Pérez wrote:
> Hi
>
> Well, actually the file already has 1024
>
> $JAVACMD "-Xmx1024m -jar $OPENNLP_HOME/lib/opennlp-tools-*.jar $@

the other file!!!!

Re: Help with OpenNLP

Posted by Katherin Pérez <ka...@gmail.com>.
Hi

Well, actually the file already has 1024

$JAVACMD "-Xmx1024m -jar $OPENNLP_HOME/lib/opennlp-tools-*.jar $@



On Sun, May 6, 2012 at 5:56 PM, william.colen@gmail.com <
william.colen@gmail.com> wrote:

> Hi, Kate,
>
> You will have to edit the file
>
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-
> incubating\bin\opennlp.bat
>
> Use a text editor, like Notepad.
> Replace 4096 at line
>
> %JAVA_CMD% -Xmx4096m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*
>
> by 1024, so you have:
>
> %JAVA_CMD% -Xmx1024m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*
>
> Save it and try again.
>
> Regards,
> William
>
> On Sun, May 6, 2012 at 12:51 PM, Katherin Pérez <katerin386@gmail.com
> >wrote:
>
> > Hello!
> >
> > Well, I already typed it, and now this is what appears!
> >
> > Microsoft Windows [Versión 6.1.7600]
> >
> > Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
> >
> > C:\Users\Kate>cd
> > C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating
> >
> >
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating>bin\opennlp
> >
> > Invalid maximum heap size: -Xmx4096m
> >
> > The specified size exceeds the maximum representable size.
> >
> > Error: Could not create the Java Virtual Machine.
> >
> > Error: A fatal exception has occurred. Program will exit.
> >
> > And when I type:
> >
> > C:\Users\Kate>cd
> > C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating \bin
> >
> > The system cannot find the specified path
> >
> >
> >
> > Why does this appears?
> >
> >
> > On Sun, May 6, 2012 at 5:40 PM, Jim - FooBar(); <jimpil1985@gmail.com
> > >wrote:
> >
> > > 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
> > <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
> > >>>
> > >>>
> > >>
> > >
> >
> >
> > --
> > 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
> >
>



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

Re: Help with OpenNLP

Posted by "william.colen@gmail.com" <wi...@gmail.com>.
Hi, Kate,

You will have to edit the file

C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-
incubating\bin\opennlp.bat

Use a text editor, like Notepad.
Replace 4096 at line

%JAVA_CMD% -Xmx4096m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*

by 1024, so you have:

%JAVA_CMD% -Xmx1024m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*

Save it and try again.

Regards,
William

On Sun, May 6, 2012 at 12:51 PM, Katherin Pérez <ka...@gmail.com>wrote:

> Hello!
>
> Well, I already typed it, and now this is what appears!
>
> Microsoft Windows [Versión 6.1.7600]
>
> Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
>
> C:\Users\Kate>cd
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating
>
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating>bin\opennlp
>
> Invalid maximum heap size: -Xmx4096m
>
> The specified size exceeds the maximum representable size.
>
> Error: Could not create the Java Virtual Machine.
>
> Error: A fatal exception has occurred. Program will exit.
>
> And when I type:
>
> C:\Users\Kate>cd
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating \bin
>
> The system cannot find the specified path
>
>
>
> Why does this appears?
>
>
> On Sun, May 6, 2012 at 5:40 PM, Jim - FooBar(); <jimpil1985@gmail.com
> >wrote:
>
> > 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
> <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
> >>>
> >>>
> >>
> >
>
>
> --
> 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
>

Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
Make sure you edit the correct file...tell windows to show the 
extensions for files and edit the file ending in ".bat"...the other one 
is for linux...

Jim

ps: if i remember correctly the sentence-setector will echo the 
sentences on screen...if you want to keep them you want to pipe them to 
a file...

On 06/05/12 16:51, Katherin Pérez wrote:
> Hello!
>
> Well, I already typed it, and now this is what appears!
>
> Microsoft Windows [Versión 6.1.7600]
>
> Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
>
> C:\Users\Kate>cd
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating
>
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating>bin\opennlp
>
> Invalid maximum heap size: -Xmx4096m
>
> The specified size exceeds the maximum representable size.
>
> Error: Could not create the Java Virtual Machine.
>
> Error: A fatal exception has occurred. Program will exit.
>
> And when I type:
>
> C:\Users\Kate>cd
> C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating \bin
>
> The system cannot find the specified path
>
>
>
> Why does this appears?
>
>
> On Sun, May 6, 2012 at 5:40 PM, Jim - FooBar();<ji...@gmail.com>wrote:
>
>> 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<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
>>>>
>>>>
>


Re: Help with OpenNLP

Posted by Katherin Pérez <ka...@gmail.com>.
Hello!

Well, I already typed it, and now this is what appears!

Microsoft Windows [Versión 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\Kate>cd
C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating

C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating>bin\opennlp

Invalid maximum heap size: -Xmx4096m

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

And when I type:

C:\Users\Kate>cd
C:\Users\Kate\Downloads\OpenNLP\apache-opennlp-1.5.2-incubating \bin

The system cannot find the specified path



Why does this appears?


On Sun, May 6, 2012 at 5:40 PM, Jim - FooBar(); <ji...@gmail.com>wrote:

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


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

Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
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
>>
>


Re: Help with OpenNLP

Posted by "Jim - FooBar();" <ji...@gmail.com>.
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
>