我正在尝试直接使用 Mahout 0.7 Java API 从我的 Lucene 4.0.0 中检索向量。指数。但是,在调用该方法时,org.apache.mahout.utils.vectors.lucene.Driver.dumpVectors()
我得到一个ClassNotFoundException: org.apache.lucene.index.TermVectorMapper
. 这是真的;该类在 lucene-core-4.0.0.jar 中不存在,但在 lucene-core-3.6.0.jar 中确实存在。
那么我是否正确假设问题是 Mahout 与 Lucene 的 3.6.0 紧密耦合,并且鉴于这些版本,不可能做我在这里尝试的事情?还是我疯了?