You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by dhanashree thakur <dk...@gmail.com> on 2014/04/16 09:10:14 UTC

error running opennlp tool

 Respected Sir/Madam,
  I am new about opennlp.I have downloaded opennlp,maven,ant required for
Opennlp and i go through instructions in each helpmme document.But some
errors ocurred,please help me regarding this.
 But following errors occurred,
C:\Program Files\apache-opennlp-1.5.3>mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.100 s
[INFO] Finished at: 2014-04-16T12:25:51-08:00
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is
no POM
 in this directory (C:\Program Files\apache-opennlp-1.5.3). Please verify
you in
voked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\apache-opennlp-1.5.3>

Re: error running opennlp tool

Posted by dhanashree thakur <dk...@gmail.com>.
When I type bin/opennlp.bat  command ,it gives error as
Invalid maximum heap size:Xmx4096
The specified size exceeds the maximum representable size.
Could not create java virtual machine

On 4/16/14, William Colen <wi...@gmail.com> wrote:
> If you are using the binary distribution, execute the command from the
> first directory, outside of the bin folder.
>
> bin/opennlp.bat
>
> Em quarta-feira, 16 de abril de 2014, William Colen
> <wi...@gmail.com>
> escreveu:
>
>> Try to execute from opennlp-tools folder. The command would be
>>
>> bin/opennlp.bat
>>
>> Em quarta-feira, 16 de abril de 2014, dhanashree thakur <
>> dkthakur611@gmail.com<javascript:_e(%7B%7D,'cvml','dkthakur611@gmail.com');>>
>> escreveu:
>>
>>> when I open opennlp.bat file,it closes itself immediately.and when i
>>> write
>>> command in cmd promt, set -Xmx4096m  to -Xmx1024m ,it give error that
>>> environmental variable for -Xmx4096m  to -Xmx1024m is not defined.
>>> How to set environmental variable for setting this.
>>>
>>>
>>> On Wed, Apr 16, 2014 at 1:29 AM, swapnil marathe <spmswapnil@gmail.com
>>> >wrote:
>>>
>>> > On Wed, Apr 16, 2014 at 1:42 PM, dhanashree thakur <
>>> dkthakur611@gmail.com
>>> > >wrote:
>>> >
>>> > > Invalid maximum heap size: -Xmx4096m
>>> >
>>> >
>>> > this is your problem
>>> >
>>> >
>>> >
>>> > open opennlp.bat file edit it :
>>> >
>>> > if you have 2gb of ram on your pc you can set
>>> >  -Xmx4096m  to -Xmx1024m  or -Xmx512m
>>> >
>>> > so set it according to ram present on your system
>>> >
>>>
>>
>>
>> --
>> William Colen
>>
>
>
> --
> William Colen
>

Re: error running opennlp tool

Posted by William Colen <wi...@gmail.com>.
If you are using the binary distribution, execute the command from the
first directory, outside of the bin folder.

bin/opennlp.bat

Em quarta-feira, 16 de abril de 2014, William Colen <wi...@gmail.com>
escreveu:

> Try to execute from opennlp-tools folder. The command would be
>
> bin/opennlp.bat
>
> Em quarta-feira, 16 de abril de 2014, dhanashree thakur <
> dkthakur611@gmail.com<javascript:_e(%7B%7D,'cvml','dkthakur611@gmail.com');>>
> escreveu:
>
>> when I open opennlp.bat file,it closes itself immediately.and when i write
>> command in cmd promt, set -Xmx4096m  to -Xmx1024m ,it give error that
>> environmental variable for -Xmx4096m  to -Xmx1024m is not defined.
>> How to set environmental variable for setting this.
>>
>>
>> On Wed, Apr 16, 2014 at 1:29 AM, swapnil marathe <spmswapnil@gmail.com
>> >wrote:
>>
>> > On Wed, Apr 16, 2014 at 1:42 PM, dhanashree thakur <
>> dkthakur611@gmail.com
>> > >wrote:
>> >
>> > > Invalid maximum heap size: -Xmx4096m
>> >
>> >
>> > this is your problem
>> >
>> >
>> >
>> > open opennlp.bat file edit it :
>> >
>> > if you have 2gb of ram on your pc you can set
>> >  -Xmx4096m  to -Xmx1024m  or -Xmx512m
>> >
>> > so set it according to ram present on your system
>> >
>>
>
>
> --
> William Colen
>


-- 
William Colen

Re: error running opennlp tool

Posted by William Colen <wi...@gmail.com>.
Try to execute from opennlp-tools folder. The command would be

bin/opennlp.bat

Em quarta-feira, 16 de abril de 2014, dhanashree thakur <
dkthakur611@gmail.com> escreveu:

> when I open opennlp.bat file,it closes itself immediately.and when i write
> command in cmd promt, set -Xmx4096m  to -Xmx1024m ,it give error that
> environmental variable for -Xmx4096m  to -Xmx1024m is not defined.
> How to set environmental variable for setting this.
>
>
> On Wed, Apr 16, 2014 at 1:29 AM, swapnil marathe <spmswapnil@gmail.com<javascript:;>
> >wrote:
>
> > On Wed, Apr 16, 2014 at 1:42 PM, dhanashree thakur <
> dkthakur611@gmail.com <javascript:;>
> > >wrote:
> >
> > > Invalid maximum heap size: -Xmx4096m
> >
> >
> > this is your problem
> >
> >
> >
> > open opennlp.bat file edit it :
> >
> > if you have 2gb of ram on your pc you can set
> >  -Xmx4096m  to -Xmx1024m  or -Xmx512m
> >
> > so set it according to ram present on your system
> >
>


-- 
William Colen

Re: error running opennlp tool

Posted by dhanashree thakur <dk...@gmail.com>.
when I open opennlp.bat file,it closes itself immediately.and when i write
command in cmd promt, set -Xmx4096m  to -Xmx1024m ,it give error that
environmental variable for -Xmx4096m  to -Xmx1024m is not defined.
How to set environmental variable for setting this.


On Wed, Apr 16, 2014 at 1:29 AM, swapnil marathe <sp...@gmail.com>wrote:

> On Wed, Apr 16, 2014 at 1:42 PM, dhanashree thakur <dkthakur611@gmail.com
> >wrote:
>
> > Invalid maximum heap size: -Xmx4096m
>
>
> this is your problem
>
>
>
> open opennlp.bat file edit it :
>
> if you have 2gb of ram on your pc you can set
>  -Xmx4096m  to -Xmx1024m  or -Xmx512m
>
> so set it according to ram present on your system
>

Re: error running opennlp tool

Posted by swapnil marathe <sp...@gmail.com>.
On Wed, Apr 16, 2014 at 1:42 PM, dhanashree thakur <dk...@gmail.com>wrote:

> Invalid maximum heap size: -Xmx4096m


this is your problem



open opennlp.bat file edit it :

if you have 2gb of ram on your pc you can set
 -Xmx4096m  to -Xmx1024m  or -Xmx512m

so set it according to ram present on your system

Re: error running opennlp tool

Posted by dhanashree thakur <dk...@gmail.com>.
Thank you very much sir for helping me. I do the same but following error
occurred

C:\Program Files\apache-opennlp-1.5.3>cd bin

C:\Program Files\apache-opennlp-1.5.3\bin>opennlp
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.

C:\Program Files\apache-opennlp-1.5.3\bin>^A


On Wed, Apr 16, 2014 at 12:45 AM, Rodrigo Agerri
<ag...@gmail.com>wrote:

> if you have download the binary distribution then there is nothing to
> build.
> Just try the tools. When in the apache-opennlp-1.5.3 directory, try
>
> bin/opennlp and you will see the tools available from CLI.
>
> Read the documentation to know how to use each tool:
>
> http://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html
>
> Cheers,
>
> Rodrigo
>
> On 2014/04/16 at 00:30, dhanashree thakur wrote:
> > sorry..but I didn't found trunk folder for running command for build
> > procedure.
> >
> > cd opennlp-trunk/opennlp
> >
> > I have downloaded "apache-opennlp-1.5.3-bin.zip". and I am using
> > window7 32 bit. Can i have downloaded wrong tool.
> >
> >
> >
> > On Wed, Apr 16, 2014 at 12:23 AM, Rodrigo Agerri
> > <ag...@gmail.com>wrote:
> >
> > > Hi,
> > >
> > > You need to go into each of the individual directories contained in the
> > > parent
> > > folder, starting by the opennlp dir, as explained here:
> > >
> > > http://opennlp.apache.org/building.html
> > >
> > > Cheers,
> > >
> > > Rodrigo
> > >
> > > On 2014/04/16 at 00:10, dhanashree thakur wrote:
> > > >  Respected Sir/Madam,
> > > >   I am new about opennlp.I have downloaded opennlp,maven,ant
> required for
> > > > Opennlp and i go through instructions in each helpmme document.But
> some
> > > > errors ocurred,please help me regarding this.
> > > >  But following errors occurred,
> > > > C:\Program Files\apache-opennlp-1.5.3>mvn clean install
> > > > [INFO] Scanning for projects...
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] BUILD FAILURE
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time: 0.100 s
> > > > [INFO] Finished at: 2014-04-16T12:25:51-08:00
> > > > [INFO] Final Memory: 2M/4M
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] The goal you specified requires a project to execute but
> there is
> > > > no POM
> > > >  in this directory (C:\Program Files\apache-opennlp-1.5.3). Please
> verify
> > > > you in
> > > > voked Maven from the correct directory. -> [Help 1]
> > > > [ERROR]
> > > > [ERROR] To see the full stack trace of the errors, re-run Maven with
> the
> > > -e
> > > > swit
> > > > ch.
> > > > [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > > [ERROR]
> > > > [ERROR] For more information about the errors and possible solutions,
> > > > please rea
> > > > d the following articles:
> > > > [ERROR] [Help 1]
> > > > http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> > > > Exception
> > > > 'cmd' is not recognized as an internal or external command,
> > > > operable program or batch file.
> > > > C:\Program Files\apache-opennlp-1.5.3>
> > >
>

Re: error running opennlp tool

Posted by Rodrigo Agerri <ag...@gmail.com>.
if you have download the binary distribution then there is nothing to build.
Just try the tools. When in the apache-opennlp-1.5.3 directory, try 

bin/opennlp and you will see the tools available from CLI. 

Read the documentation to know how to use each tool: 

http://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html

Cheers, 

Rodrigo

On 2014/04/16 at 00:30, dhanashree thakur wrote:
> sorry..but I didn't found trunk folder for running command for build
> procedure.
> 
> cd opennlp-trunk/opennlp
> 
> I have downloaded "apache-opennlp-1.5.3-bin.zip". and I am using
> window7 32 bit. Can i have downloaded wrong tool.
> 
> 
> 
> On Wed, Apr 16, 2014 at 12:23 AM, Rodrigo Agerri
> <ag...@gmail.com>wrote:
> 
> > Hi,
> >
> > You need to go into each of the individual directories contained in the
> > parent
> > folder, starting by the opennlp dir, as explained here:
> >
> > http://opennlp.apache.org/building.html
> >
> > Cheers,
> >
> > Rodrigo
> >
> > On 2014/04/16 at 00:10, dhanashree thakur wrote:
> > >  Respected Sir/Madam,
> > >   I am new about opennlp.I have downloaded opennlp,maven,ant required for
> > > Opennlp and i go through instructions in each helpmme document.But some
> > > errors ocurred,please help me regarding this.
> > >  But following errors occurred,
> > > C:\Program Files\apache-opennlp-1.5.3>mvn clean install
> > > [INFO] Scanning for projects...
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time: 0.100 s
> > > [INFO] Finished at: 2014-04-16T12:25:51-08:00
> > > [INFO] Final Memory: 2M/4M
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] The goal you specified requires a project to execute but there is
> > > no POM
> > >  in this directory (C:\Program Files\apache-opennlp-1.5.3). Please verify
> > > you in
> > > voked Maven from the correct directory. -> [Help 1]
> > > [ERROR]
> > > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e
> > > swit
> > > ch.
> > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > [ERROR]
> > > [ERROR] For more information about the errors and possible solutions,
> > > please rea
> > > d the following articles:
> > > [ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> > > Exception
> > > 'cmd' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > C:\Program Files\apache-opennlp-1.5.3>
> >

Re: error running opennlp tool

Posted by dhanashree thakur <dk...@gmail.com>.
sorry..but I didn't found trunk folder for running command for build
procedure.

cd opennlp-trunk/opennlp

I have downloaded "apache-opennlp-1.5.3-bin.zip". and I am using
window7 32 bit. Can i have downloaded wrong tool.



On Wed, Apr 16, 2014 at 12:23 AM, Rodrigo Agerri
<ag...@gmail.com>wrote:

> Hi,
>
> You need to go into each of the individual directories contained in the
> parent
> folder, starting by the opennlp dir, as explained here:
>
> http://opennlp.apache.org/building.html
>
> Cheers,
>
> Rodrigo
>
> On 2014/04/16 at 00:10, dhanashree thakur wrote:
> >  Respected Sir/Madam,
> >   I am new about opennlp.I have downloaded opennlp,maven,ant required for
> > Opennlp and i go through instructions in each helpmme document.But some
> > errors ocurred,please help me regarding this.
> >  But following errors occurred,
> > C:\Program Files\apache-opennlp-1.5.3>mvn clean install
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 0.100 s
> > [INFO] Finished at: 2014-04-16T12:25:51-08:00
> > [INFO] Final Memory: 2M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] The goal you specified requires a project to execute but there is
> > no POM
> >  in this directory (C:\Program Files\apache-opennlp-1.5.3). Please verify
> > you in
> > voked Maven from the correct directory. -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > swit
> > ch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please rea
> > d the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> > Exception
> > 'cmd' is not recognized as an internal or external command,
> > operable program or batch file.
> > C:\Program Files\apache-opennlp-1.5.3>
>

Re: error running opennlp tool

Posted by Rodrigo Agerri <ag...@gmail.com>.
Hi, 

You need to go into each of the individual directories contained in the parent
folder, starting by the opennlp dir, as explained here: 

http://opennlp.apache.org/building.html

Cheers, 

Rodrigo

On 2014/04/16 at 00:10, dhanashree thakur wrote:
>  Respected Sir/Madam,
>   I am new about opennlp.I have downloaded opennlp,maven,ant required for
> Opennlp and i go through instructions in each helpmme document.But some
> errors ocurred,please help me regarding this.
>  But following errors occurred,
> C:\Program Files\apache-opennlp-1.5.3>mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.100 s
> [INFO] Finished at: 2014-04-16T12:25:51-08:00
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] The goal you specified requires a project to execute but there is
> no POM
>  in this directory (C:\Program Files\apache-opennlp-1.5.3). Please verify
> you in
> voked Maven from the correct directory. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> Exception
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
> C:\Program Files\apache-opennlp-1.5.3>