简体   繁体   English

应用运行时,使用Apache Mahout的TFIDF出现“作业失败!”

[英]TFIDF using Apache Mahout have “Job failed!” when app run

I want to run simple app using Apache Mahout from http://technobium.com/tfidf-explained-using-apache-mahout/ . 我想使用http://technobium.com/tfidf-explained-using-apache-mahout/中的 Apache Mahout运行简单的应用程序。 But! 但! When app running, i have some exception: 应用运行时,我有一些例外:

Exception in thread "main" java.lang.IllegalStateException: Job failed!
    at org.apache.mahout.vectorizer.DictionaryVectorizer.startWordCounting(DictionaryVectorizer.java:369)
    at org.apache.mahout.vectorizer.DictionaryVectorizer.createTermFrequencyVectors(DictionaryVectorizer.java:180)
    at my.package.text_extractor.clasterization.TFIDFTester.calculateTfIdf(TFIDFTester.java:97)
    at my.package.text_extractor.clasterization.TFIDFTester.main(TFIDFTester.java:35) 

But, I don't know how to fix it . 但是,我不知道如何解决它 Maybe you know how to fix this problem in Apache Mahout lib ? 也许您知道如何在Apache Mahout lib中解决此问题? Please, give me some idea! 请给我一些想法!

Configuration: 组态:
Windows 7 x64, Eclipse Oxigen 1a, Maven, Mahout-core-0.9 Windows 7 x64, Eclipse Oxigen 1a,Maven,Mahout-core-0.9

This happened to my program that was based on the same sample code (technobium) when I made my analyzer inner class and constructor non public. 当我将分析器内部类和构造函数设为非公开时,这是基于相同示例代码(technobium)的程序发生的。 They are instantiated by reflection (yuck). 它们是通过反射实例化的(糟糕)。

Unfortunately the exception that gets thrown is extremely unhelpful. 不幸的是,抛出的异常极其无助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM