DictionaryForMids Forum

DfM-Creator => DfM-Creator - DictionaryGeneration => Topic started by: daroojoo on 18. October 2011, 13:47:35

Title: problem with language 2 with large texts
Post by: daroojoo on 18. October 2011, 13: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.
Title: Re: problem with language 2 with large texts
Post by: daroojoo on 18. October 2011, 13: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.
Title: Re: problem with language 2 with large texts
Post by: Gert on 18. October 2011, 20: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
Title: Re: problem with language 2 with large texts
Post by: daroojoo on 24. October 2011, 17: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.