Closed EverybodyKurts closed 9 years ago
A gigabyte isn't all that much space for this sort of thing. Try several times larger.
Same thing happens with the first paragraph of A Tale of Two Cities. I think it has something to do with long sentences.
It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way—in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.
Bumping up the memory even more to via the argument '-Xmx2048M'
seems to do the job.
Thanks for your help Jim!
Hello,
I took a text excerpt from Swann's Way (listed below) from the wikipedia entry for Flesch-Kincaid Readability Tests.
Unfortunately, whenever I try to break down this passage into sentences and tokens, I get an
OutOfMemoryError: Java heap space
error.I passed
Xmx1024M
to the gem'sjvm_args
like so:Unfortunately, this didn't do the trick for me.
I think it might have to do with the fact this the passage below is one very long sentence. When I plug in most text excerpts, it seems to work fine.
Thanks for any and help.
Swann's Way: