Java SDK for gorse recommender system
<dependency>
<groupId>io.gorse</groupId>
<artifactId>gorse-client</artifactId>
<version>0.4.0</version>
</dependency>
import io.gorse.gorse4j.*;
public class Main {
public static void main(String[] args) {
Gorse client = new Gorse(GORSE_ENDPOINT, GORSE_API_KEY);
List<Feedback> feedbacks = List.of(
new Feedback("read", "100", "300", "2022-11-20T13:55:27Z"),
new Feedback("read", "100", "400", "2022-11-20T13:55:27Z")
);
client.insertFeedback(feedbacks);
client.getRecommend("100");
}
}