Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowError #1

Open
vinnitu opened this issue Sep 5, 2016 · 1 comment
Open

StackOverflowError #1

vinnitu opened this issue Sep 5, 2016 · 1 comment

Comments

@vinnitu
Copy link

vinnitu commented Sep 5, 2016

I'm trying to train model with model file size about 25MB

here I have error, but I don't know how to fix it

https://github.com/hvtuananh/lingpipe/blob/master/src/com/aliasi/spell/CompiledSpellChecker.java#L1319

     [java] Reading model from file=SpellCheck.model
     [java] Exception in thread "main" java.lang.StackOverflowError
     [java]     at java.util.DualPivotQuicksort.sort(DualPivotQuicksort.java:1506)
     [java]     at java.util.Arrays.sort(Arrays.java:264)
     [java]     at com.aliasi.spell.CompiledSpellChecker.completeTrieNode(CompiledSpellChecker.java:1314)
     [java]     at com.aliasi.spell.CompiledSpellChecker.completeTrieNode(CompiledSpellChecker.java:1319)
     [java]     at com.aliasi.spell.CompiledSpellChecker.completeTrieNode(CompiledSpellChecker.java:1319)

Help me fix it?
Maybe I need something to do with train data before training?

@RishiPrakash
Copy link

Don't use Arrays.sort; implement your own merge sort, it will solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants