我正在尝试运行 Mallet 的主题建模,但出现以下错误:
Couldn't open cc.mallet.util.MalletLogger resources/logging.properties file.
Perhaps the 'resources' directories weren't copied into the 'class' directory.
Continuing.
Exception in thread "main" java.lang.IllegalArgumentException: Trouble reading file stoplists\en.txt at cc.mallet.pipe.TokenSequenceRemoveStopwords.fileToStringArray(TokenSequenceRemoveStopwords.java:144) at cc.mallet.pipe.TokenSequenceRemoveStopwords.<init>(TokenSequenceRemoveStopwords.java:73) at LDA.TopicModel.main(TopicModel.java:23)
我已经添加了所有的jar文件!您能告诉我这里有什么问题吗?
谢谢
最佳答案
我收到了第一个错误,它也可以继续。
但阻止您的实际异常似乎是您没有在正确的位置放置 MALLET 停用词列表。我将他们的 en.txt 停用词列表下载到特定位置,并为其提供了直接路径,而不是“stoplists/en.txt”,这有效。
关于java - 无法运行 Mallet 主题模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24563419/