Menu

#3 java.lang.OutOfMemoryError

v1.82
open
General (3)
5
2004-09-06
2004-09-02
Anonymous
No

Hi.
While creating a Corpus() object whith "Corpus c = new
Corpus("myCorpus.xml")", I allways get a
java.lang.OutOfMemoryError.
I use the original Tiger Corpus from the homepage not
just the sample. (No Error occured while loading the
sample file.)
What can I do to avoid this error? I hope to receive
some hints.

ps: I've allready tried to avoid the problem by increasing
the stacksize.

Discussion

  • Oezguer Demir

    Oezguer Demir - 2004-09-03
    • assigned_to: nobody --> oeze
     
  • Oezguer Demir

    Oezguer Demir - 2004-09-03
    • status: open --> pending
     
  • Oezguer Demir

    Oezguer Demir - 2004-09-03

    Logged In: YES
    user_id=947333

    You have to split the corpus into smaller units. Loading the
    whole TIGER corpus (~40000 sentences) will require about
    1.4 GB of memory. So, on a machine with 512 MB memory
    available it should be sufficient to split the corpus into 4
    parts - you can use a text editor to do this; make sure that
    all parts are well-formed XML. Then start your application
    using the -Xmx500M switch.

    Example: java -Xmx500M -cp tigerAPI.jar sampleApp

    Please let me know whether it worked.

    oeze

     
  • Oezguer Demir

    Oezguer Demir - 2004-09-06
    • status: pending --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.