I am researching with Lenskit for Java, I wanna load file with CSV file. I using TextEntitySource to load source but I got error.
import java.io.File;
import java.io.IOException;
import org.lenskit.data.dao.file.TextEntitySource;
public class MainCTF {
public static void main(String[] args) throws IOException {
TextEntitySource entitySource = new TextEntitySource();
File file = new File("D:\\newdocres\\dataset\\item_feature_matrix.csv");
entitySource.setFile(file.toPath());
}
}
Exception in thread "main" java.lang.NoSuchMethodError: 'com.google.common.io.ByteSource org.grouplens.lenskit.util.io.LKFileUtils.byteSource(java.io.File, org.grouplens.lenskit.util.io.CompressionMode)'
at org.lenskit.data.dao.file.TextEntitySource.setFile(TextEntitySource.java:107)
at main.MainCTF.main(MainCTF.java:17)
So How to can load a file CSV or using JDBC in Lenskit for java