senderle / topic-modeling-tool

A point-and-click tool for creating and analyzing topic models produced by MALLET.
https://senderle.github.io/topic-modeling-tool/documentation/2017/01/06/quickstart.html
Apache License 2.0
106 stars 22 forks source link

Can TMT work on just one text? #76

Closed amaze2 closed 4 years ago

amaze2 commented 4 years ago

Hi Scott, Can the Topic Modeling Tool topic model just one text file? When I attempt to do so, I get the error below. Might this be fixed? Or should the TMT simply not be used on only one text? Thank you! Adam

java.lang.ArrayIndexOutOfBoundsException: -1 at cc.mallet.topics.WorkerRunnable.sampleTopicsForOneDoc(WorkerRunnable.java:489) at cc.mallet.topics.WorkerRunnable.run(WorkerRunnable.java:275) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)