Author Topic: Making a large dictionary: getting heap errors  (Read 2923 times)

0 Members and 1 Guest are viewing this topic.

iacovoni

  • Newbie
  • *
  • Posts: 1
    • View Profile
Making a large dictionary: getting heap errors
« on: 18. May 2007, 11:25:45 »
I'm trying to convert some large dictionaries I had to the dictionary for MIDs form but keep getting heap errors.

Can you please post the DictionaryForMIDs.properties of the large wordnet dictionary you already created? Would be very helpfull as the overall size more or less is the same. Thanks again!

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 859
    • View Profile
    • DictionaryForMIDs
Re: Making a large dictionary: getting heap errors
« Reply #1 on: 18. May 2007, 18:16:09 »
Do you get the heap problems with DictionaryGeneration ? If yes, then just try to add an "-Xmx 300M" to the command line. That gives 300 MB space (or use whatever size you need).

Or do you have the problem when you run the DictionaryForMIDs application on your cell phone or PDA ?

For the DictionaryForMIDs.properties: you just need to download the wordnet dictionary, then in the jar file in the directory 'dictionary' you find the file DictionaryForMIDs.properties. You can open the jar file with any zip tool.

Please just keep asking - I am sure that we will solve that problem quickly.

Best greetings,
Gert

torkuhl

  • Developer
  • *****
  • Posts: 14
    • View Profile
Re: Making a large dictionary: getting heap errors
« Reply #2 on: 23. October 2007, 19:07:34 »
gert i am running into the same problem with the cedict now. it never happened before.
where and how do i put xmx 300m into the command line?

lars

torkuhl

  • Developer
  • *****
  • Posts: 14
    • View Profile
Re: Making a large dictionary: getting heap errors
« Reply #3 on: 23. October 2007, 19:14:32 »
wow
i just amazed myself!
command line:
java -Xmx300M -jar DictionaryGeneration.......

it worked