Author Topic: problem with language 2 with large texts  (Read 1833 times)

0 Members and 1 Guest are viewing this topic.

daroojoo

  • Newbie
  • *
  • Posts: 21
    • View Profile
problem with language 2 with large texts
« on: 18. October 2011, 12:47:35 »
hello
i want to create a large dictionary using a txt file with size 28 Mb and 6000 enteries. It has 2 columns (language 1 and language 2). in 'properties' i determinded that language 2 does not form Index and not to be searchable. language 1 is searchable and have a small size enteries (often each less than 30 characters). but some of language 2 enteries is very large (even some of them more than 2000-5000 characters.
my problem was Heap Error after entering command line. so I used command :
java -Xmx200M -jar C:\a\Tools\DictionaryGeneration.jar
and my dictionary was created. But when I install on my mobile phone it presented me some out of memory Error or could not open csv file Error specially with large enteries.
is it possible to somehow resolve the problem? or adding a new feacher to dictionary 3.5.7 to automatically split (divide) large enteries to resolve Heap error or out of memory error.
prior thanks.

daroojoo

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: problem with language 2 with large texts
« Reply #1 on: 18. October 2011, 12:55:02 »
now that i see it i know some of enteries of language 2 is even more 30000 characters. it is dificult for me to find and divide numerous enteries that have problem, in addition it is a bit nndesirable for my users to read separated texts.

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 862
    • View Profile
    • DictionaryForMIDs
Re: problem with language 2 with large texts
« Reply #2 on: 18. October 2011, 19:15:03 »
So generating works ok now, right ?

But you have a problem when you install the dictionary on your mobile ? What error exactly does your mobile report ?

Gert

daroojoo

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: problem with language 2 with large texts
« Reply #3 on: 24. October 2011, 16:36:43 »
I divided large language 2 entries with Microsoft Word and now my problem has been solved. (though application speed still is a bit low). thanks.