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

ArrayIndexOutOfBoundsException #1

Closed
yangzhou04 opened this issue Apr 27, 2015 · 1 comment
Closed

ArrayIndexOutOfBoundsException #1

yangzhou04 opened this issue Apr 27, 2015 · 1 comment

Comments

@yangzhou04
Copy link

After some warning of "Unknown document label ( term ) for document doc_id."
An exception occurs:

java.lang.ArrayIndexOutOfBoundsException: 116
at jgibblda.Estimator.sampling(Estimator.java:114)
at jgibblda.Estimator.estimate(Estimator.java:66)
at jgibblda.LDA.main(LDA.java:52)

My data like:
[10] term1_1 term1_2 ...
term_2_1 term2_2 ...

@yangzhou04
Copy link
Author

I've found the reason, that's because the topic number should larger than the label index size.

Although it seems obvious, it's better to explain it in the readme.

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

1 participant