hankcs / LDA4j

A Java implemention of LDA(Latent Dirichlet Allocation)

Home Page:http://www.hankcs.com/nlp/lda-java-introduction-and-implementation.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

translate函数中limit过大会出问题

citymonkeymao opened this issue · comments

ldautil第41行应改为for (int i = 0; i < limit && iterator.hasNext() ; ++i),否则limit超过iterator的大小的时候会报错

我遇到translate提示,“java.util.NoSuchElementException”,应该就是你所说的问题。