blei-lab / hdp

Hierarchical Dirichlet processes. Topic models where the data determine the number of topics. This implements Gibbs sampling.
GNU General Public License v2.0
150 stars 47 forks source link

I got a error when executing hdp #1

Open dengjl opened 8 years ago

dengjl commented 8 years ago

gsl: ../gsl/gsl_rng.h:200: ERROR: invalid n, either 0 or exceeds maximum value of generator Default GSL error handler invoked. how can I fix it thanks!

vseledkin commented 7 years ago

because one (or more) of your documents has zero length

rtrad89 commented 5 years ago

Just for the record: even though I got a slightly different error on Windows 10 with MinGW32

gsl: ..\rng\rng.c:146: ERROR: invalid n, either 0 or exceeds maximum value of generator

The solution was also to exclude empty documents.